void AfxEnableControlContainer( );
Remarks
Call this function in your application object's InitInstance function to enable support for containment of OLE controls.
For more information about OLE controls (now called ActiveX controls), see ActiveX Control Topics in the Visual C++ Programmer's Guide.