|
-
October 28th, 1999, 05:43 AM
#1
Using a VB-COM Object in C++
I have a Com Component called "COMTEST"
It has a Class called "MATH"
I want to instantanite an object of the type COMTEST.MATH, in my Plain Vanilla C++ Program,and use the method ADD of the MATH object which takes two long values and returns a long Can someone please write some sample code for this
URGENT PROJECT on hold for this
I tried with CoCreateInstance
The last parameter of CoCreateInstance is an [out] parameter in which a refernce to the object is returned
What should I declare this variable as?
Since this COM DLL is made in VB there is no Header file
Can't I do somrething like CreateObject( that i do in VB) here ?
Regards Vijay
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
|