ActiveX!!!!!!

This is a discussion on ActiveX!!!!!! within the Windows Programming forums, part of the Platform Specific Boards category; Can any of you guys tell me how i can add an ActiveX control to a window i have created ...

  1. #1
    Registered User
    Join Date
    Oct 2001
    Posts
    5

    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

    Aaron

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

    http://msdn.microsoft.com/

    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
    Posts
    156
    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, 07:46 AM
  2. Help on ActiveX
    By jason_6496 in forum Windows Programming
    Replies: 0
    Last Post: 07-18-2006, 12:53 PM
  3. using the ActiveX control
    By jverkoey in forum Windows Programming
    Replies: 3
    Last Post: 04-10-2004, 07:44 PM
  4. Remove ActiveX from VC++ project
    By cr_naik in forum Windows Programming
    Replies: 2
    Last Post: 07-02-2003, 12:15 PM
  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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21