Need help in the Serializing and DeSerializing of an CObArray.
I know to Serialize I just do this:

CObArray testList;
testList.Serialize(ar);

so how to I take out the CObArray and assign it to another CObArray object test2List?

thanks in advance.

04-11-2002

Unregistered

You need to be more precise in what you are trying to say/do.

From posted code I would say CObArray is a user defined class. The the CObArray class has a method called Serialize() that takes a single argument. You declare testlist as a CObArray object. Then you pass ar, whatever that is, to the Serialize() method of that object.

Now to the crux of the problem: Are you trying to "copy" one CObArray object to another (a process accomplished by an overloaded assignment operator, and/or a copy constructor) or do you wish to transfer data in a member variable of one object into a member variable, method of another object?

04-11-2002

Unregistered

CObArray is an array of Objects.

04-11-2002

Unregistered

Do you mean that CObArray is an array of objects like

objectType CObArray[numberOfObjects];

or

objectType * CObArray = new objectType[numberOFObjects];

and the line

CObArray testlist;

is gibberish. Or do you mean something like a class that has an array of objects in it. Like this: