You must call the AfxEnableControlContainer function when you use OLE control containers in Visual C++ (150029)
The information in this article applies to:
- Microsoft Visual C++ 4.0
- Microsoft Visual C++ 4.1
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 5.0
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 5.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 Q150029 SUMMARY
Using Visual C++ version 4.0, it is possible to construct OLE Control
Containers. These containers must call AfxEnableControlContainer() in their
CWinApp::InitInstance(). This call is added automatically if OLE Controls
support is checked in AppWizard Step 3, but in some cases, this call must
be added manually. This article explains why you need to call
AfxEnableControlContainer() and the possible problems that might occur if
this call is not made.
Modification Type: | Major | Last Reviewed: | 6/2/2005 |
---|
Keywords: | kbhowto kbContainer kbCtrl kbinfo KB150029 kbAudDeveloper |
---|
|