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.
Printable View
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.
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**))
Do I need to import the EXE first? Or what should I do to link the EXE to my program?
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