ATL COM - Passing ATL COM classes through another ATL COM class in the same app
You need to understand Collections and Enumerators in order to do
what you want to do.
Take a look at
Also post your query at
> hi all,
> anyone out there know there way around ATL COM.??? I have a problem and
> 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
> 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.