KCP
April 12th, 2001, 06:52 AM
Hi, I wonder if anyone can help.
I have created a COM object in the form of a dll using VB6.
I would like to know how I can access this COM object in C++. I would usually use CoCreateInstance but that requires my C++ code to have knowledge of the interfaces supported by my VB COM object. I usually use the .H file containing the interfaces and IIDs (so I can declare a pointer to my interface, eg, KCPInterface* myInterfacePtr - then pass this to CoCreateInstance. I hope the above makes sense, thanks in advance for any help, I'm stuck on this one!!!
I have created a COM object in the form of a dll using VB6.
I would like to know how I can access this COM object in C++. I would usually use CoCreateInstance but that requires my C++ code to have knowledge of the interfaces supported by my VB COM object. I usually use the .H file containing the interfaces and IIDs (so I can declare a pointer to my interface, eg, KCPInterface* myInterfacePtr - then pass this to CoCreateInstance. I hope the above makes sense, thanks in advance for any help, I'm stuck on this one!!!