At the first time when i creat my programe i choose no Activex control support in the appwizard,but now ,i have to use some Activex controls,what should i do?
At the first time when i creat my programe i choose no Activex control support in the appwizard,but now ,i have to use some Activex controls,what should i do?
Add CoInitialize(NULL) in your app's InitInstance function ( to make sure it gets called before any control gets created).
Take a look at the MSDN article ActiveX Control Containers: Manually Enabling ActiveX Control Containment. It indicates how to use AfxEnableControlContainer() to enable ActiveX control support.