Hi All, I have a problem. I have written a COM DLL in VB6 to do some
stuff. I need to call this DLL from a VC++ program for which I have the
code. I have managed to get as far as creating the instance of the COM
object and calling a method from within the C++ program - not being a
C++ programmer at all, this was a huge undertaking, and I'm very proud
of myself for even getting this far ;-).
My Question is in relation to passing parameters from the C++ program
to my VB COM Object. If I define a String variable in VB, what must my
parameter in C++ be in order for it to talk properly. There seems to be
a whole host of string types available - CHAR, CString, LPCOLESTR,
OLESTR, TCHAR, blah, blah, blah, and each of these types are only
applicable for specific things. Maybe I have it wrong, if so, please
correct me. Number data is also a headache. If someone could explain to
me the correlation from C++ to VB, maybe even provide a list of C++ to
VB data type equivalents, I would be most appreciative.
Many Thanks Rob