Click here to Skip to main content
15,886,007 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i have an ATL dll project and two classes (classA,classB) in it. ClassA takes the classB as parameter. In ATL is it possible and how?
Posted

Why should it be impossible ? :)

class B;

class A
{
...
public:
  A(B* pB);
...


--
When you will have to transport class instances by an interface -
you could define a function like TakeData(IStream* pStream) :)

The caller could create an IStream associated with COleStreamFile,
serialize any object(s, collections) in to the file
and pass the detached IStream* to the interface function :)

Of course the server must know the trasported objects
and their serializing methods... :)
 
Share this answer
 
Thank you for your answer Eugen
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900