|
-
May 21st, 2001, 10:29 PM
#1
Thread Starter
Addicted Member
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.
-
May 22nd, 2001, 07:09 PM
#2
Hyperactive Member
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
-
May 22nd, 2001, 08:29 PM
#3
Thread Starter
Addicted Member
Do I need to import the EXE first? Or what should I do to link the EXE to my program?
-
May 23rd, 2001, 04:21 PM
#4
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|