CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2004
    Posts
    43

    How to change the settings to add Activex controls to my programe?

    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?

  2. #2
    Join Date
    Aug 2002
    Location
    Cluj-Napoca,Romania
    Posts
    3,496
    Add CoInitialize(NULL) in your app's InitInstance function ( to make sure it gets called before any control gets created).

  3. #3
    Join Date
    Apr 1999
    Posts
    3,585
    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.
    Gort...Klaatu, Barada Nikto!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured