Using COM objects within COM objects 
Author Message
 Using COM objects within COM objects

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.*-*-*.com/
Share what you know. Learn what you don't.



Mon, 21 Jan 2002 03:00:00 GMT  
 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.



Tue, 22 Jan 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problem with scripting context when using VB com object inside VC com object

2. Return a pointer to a nested COM object from a COM object method

3. Invoking COM object from COM object

4. passing COM object pointers to another COM object in ATL

5. COM Object returning COM Object Reference

6. COM object in a COM object

7. Passing COM objects as parameters to other COM objects

8. C++ COM-Object with COM-Object as parameter

9. Creating COM objects from COM objects

10. Passing COM objects as parameters to other COM objects

11. Using GetLastError within a com object

12. Using Winmm.lib from within a COM object

 

 
Powered by phpBB® Forum Software