You cannot create a dialog in Visual C++ if the dialog template has a Rich Edit control (166132)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Professional Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q166132 SYMPTOMS Dialog creation may fail if the dialog template has a Rich
Edit control in it. This template may be used in a dialog, CformView, or
property page. The following error messages may appear in the IDE
output window when you execute the program in the debugger with the debug
build. No error message or warning is given if you execute the program outside
the debugger or with the release build. Dialog or Property Page Visual C++ 5.0:
Warning: Dialog creation failed!
Visual C++ 6.0:
If this dialog has OLE controls:
AfxEnableControlContainer has not been called yet.
You should call it in your app's InitInstance function.
CFormView Visual C++ 5.0:
Warning: Dialog creation failed!
Warning: could not create view for frame.
Failed to create client pane/view for frame.
Warning: CDocTemplate couldn't create a frame.
Visual C++ 6.0:
If this dialog has OLE controls:
AfxEnableControlContainer has not been called yet.
You should call it in your app's InitInstance function.
In the case of a CformView, the following message also
appears:
Failed to create empty document.
CAUSE The Rich Edit control is not initialized. RESOLUTION Call the MFC global function AfxInitRichEdit before you
create the dialog to initialize the Rich Edit Control. A good place to
initialize the Rich Edit control is in the application's InitInstance function
before you create the dialog. STATUS This behavior is by design.
Modification Type: | Major | Last Reviewed: | 6/2/2005 |
---|
Keywords: | kbtshoot kbDlg kberrmsg kbprb kbRichEdit KbUIDesign KB166132 kbAudDeveloper |
---|
|