Click to See Complete Forum and Search --> : Put ActiveX into VC++?
serhiy
May 21st, 2001, 10:29 PM
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.
KENNNY
May 22nd, 2001, 07:09 PM
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**))
serhiy
May 22nd, 2001, 08:29 PM
Do I need to import the EXE first? Or what should I do to link the EXE to my program?
KENNNY
May 23rd, 2001, 04:21 PM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.