You must call the AfxEnableControlContainer function when you use OLE control containers in Visual C++
Article ID: 150029
Article Last Modified on 6/2/2005
APPLIES TO
- Microsoft Visual C++ 4.0 Standard Edition
- Microsoft Visual C++ 4.1 Subscription
- Microsoft Visual C++ 4.2 Enterprise Edition
- Microsoft Visual C++ 5.0 Enterprise Edition
- Microsoft Visual C++ 6.0 Enterprise Edition
- Microsoft Visual C++ 4.2 Professional Edition
- Microsoft Visual C++ 5.0 Professional Edition
- Microsoft Visual C++ 6.0 Professional Edition
- Microsoft Visual C++ 6.0 Standard Edition
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.
Additional query words: kbvc410 kbvc400 kbvc500 kbvc600
Keywords: kbhowto kbinfo kbcontainer kbctrl KB150029