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