Results 1 to 4 of 4

Thread: Put ActiveX into VC++?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Posts
    130

    Put ActiveX into VC++?

    Goodday everybody...

    I wish to know how do I call an ActiveX Exe created in VB, using a program written in VC++?

    Thanks in advanced.

  2. #2
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    you'll need the CLSID of the object you want to create from the exe, the IID of the interface you want, and use CoCreateInstance:

    CoCreateInstance(CLSID of object, NULL, CLSCTX_LOCAL_SERVER, IID of interface, variable that receives pointer to interface(a VOID**))
    buzzwords are the language of fools

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Posts
    130
    Do I need to import the EXE first? Or what should I do to link the EXE to my program?

  4. #4
    Hyperactive Member
    Join Date
    Jan 2000
    Posts
    355
    um i think that should work straight off
    try it
    btw i havent done any COM in C/C++ so this is a best guess, from what I know about COM
    buzzwords are the language of fools

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