How do I Enable ActiveX Controls  
Author Message
NuclearChicken





PostPosted: Visual C++ General, How do I Enable ActiveX Controls Top

When I created my project I unchecked - 'ActiveX Controls', thinking I would not need them. Now I need them, but I cannot work out how to change the project settings to enable ActiveX controls. Please could you tell me where in the project Properties dialog is the option to enable them

Thanks



Visual C++10  
 
 
Viorel.





PostPosted: Visual C++ General, How do I Enable ActiveX Controls Top

I think you should add "#include <afxdisp.h>" line to your StdAfx.h file and call AfxEnableControlContainer function in InitInstance member of your application. Then rebuild your solution using Rebuild All command.< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

To be sure this is enough, create two new projects with different ActiveX settings and then compare generated files and compiler options.

 

I hope this helps.