
Using COM objects within COM objects
How about posting some sample code showing what you are doing. Also
describe the relationship between the COM objects - ie are they in the same
dll, or different dll's, etc.
One of the easiest, but by no means the only way to do what you want to do
is to #import the called COM object. This works best if the objects are in
separate dlls. If the objects are in the same dll, you can #include the
header file and either do your own SMART_POINTER_TYPEDEF, or use CComPtr
helper class depending upon your needs.
Vincent Minden
Quote:
> I am trying to write a COM object that calls functions in another
> COM object but the compiler doesnt want to play along. Is it possible
> to do this, and if so, what is the best way to go about it ?
> TIA,
> -Rob
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.