Thread: ActiveX!!!!!!

  1. #1
    Registered User
    Join Date
    Oct 2001

    Red face ActiveX!!!!!!

    Can any of you guys tell me how i can add an ActiveX control to a window i have created using CreateWindow? i need to add a few ActiveX controls written in VB and/or C to my app.
    do vb activex ctls work in c++?

    many thanks


  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    i don't know but try

    lots of good info... they should have something.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

  3. #3
    Registered User
    Join Date
    Sep 2001
    ActiveX is based on COM, therefore it must implement IUknown and almost always IDispatch which makes the object or control available to scripting languages. All you should have to do is a CoCreatInstance on the CLSID of the CoClass and IID of the interface you want, then use the methods from the interface pointer that is returned. CoCreateInstance takes more parameters than I've discussed but its a good place for you to start.

    The world of ActiveX is very large if you're really serious I suggest ActiveX Controls Inside Out by Adam Demming.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [MFC-ActiveX] Inserting an ActiveX into an ActiveX
    By Lionel in forum Windows Programming
    Replies: 1
    Last Post: 05-27-2007, 06:46 AM
  2. Help on ActiveX
    By jason_6496 in forum Windows Programming
    Replies: 0
    Last Post: 07-18-2006, 11:53 AM
  3. using the ActiveX control
    By jverkoey in forum Windows Programming
    Replies: 3
    Last Post: 04-10-2004, 06:44 PM
  4. Remove ActiveX from VC++ project
    By cr_naik in forum Windows Programming
    Replies: 2
    Last Post: 07-02-2003, 11:15 AM
  5. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM