ATL COM - Passing ATL COM classes through another ATL COM class in the same app 
Author Message
 ATL COM - Passing ATL COM classes through another ATL COM class in the same app

hi all,

anyone out there know there way around ATL COM.??? I have a problem and cant
find any helpful hints in the docs....

Ive got an ATL COM app with MFC support. I have an ATL object created from
the 'simple object' template. I want to be able to create a collection of
these objects and expose that collection through another ATL COM object. I
have hit a brick wall.

Ive thought about making the 'small' classes non ATL objects, but i still
dont understand how to pass objects through the ATL COM interface. It seems
you can only pass parameters of certain types; im suspecting IDispatch and
IUnknown are the way forward but I remain baffled. Can anyone explain this
to me???

ANY help gratefully received.

James.
:o(



Sat, 30 Aug 2003 01:21:25 GMT  
 ATL COM - Passing ATL COM classes through another ATL COM class in the same app
Hi..

        You need to understand Collections and Enumerators in order to do
what you want to do.

        Take a look at

http://www3.ewebcity.com/somasundaram/Career/Repository/atl/atl_com_s....
htm

        Also post your query at

                        microsoft.public.vc.atl

Cheers
Check Abdoul
-----------------


Quote:
> hi all,

> anyone out there know there way around ATL COM.??? I have a problem and
cant
> find any helpful hints in the docs....

> Ive got an ATL COM app with MFC support. I have an ATL object created from
> the 'simple object' template. I want to be able to create a collection of
> these objects and expose that collection through another ATL COM object. I
> have hit a brick wall.

> Ive thought about making the 'small' classes non ATL objects, but i still
> dont understand how to pass objects through the ATL COM interface. It
seems
> you can only pass parameters of certain types; im suspecting IDispatch and
> IUnknown are the way forward but I remain baffled. Can anyone explain this
> to me???

> ANY help gratefully received.

> James.
> :o(



Sat, 30 Aug 2003 01:37:33 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ATL COM Passing other ATL classes through an ATL COM interface..

2. COM/ATL novice:passing object pointers through methods on a COM interface

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

4. Howto Expose a normal C++ class with methods via an Interface Class in ATL COM

5. ATL COM Class Final Construct dies with Member Accessor Class

6. Accessing COM class members when passed in to a COM class

7. ATL and Base Class Pointers in COM

8. COM/ATL component without a factory class

9. Suddenly can't register ATL COM class

10. Newbie Q: Using a pointer to a COM class with in the ATL project

11. Is there a way for communication between instances of an ATL based com class

12. ATL COM Interface not displayed in Class View

 

 
Powered by phpBB® Forum Software