Rahulsaxena used Ask the Experts™
I have a class called File_Properties, the class contains two CString data members Say CString X and CString Y.
The objects of File_Properties are stored in a class called File_Properties_Array derived from CArray
eg. (File_Properties_Array:public CArray<File_Properties,File_Properties&>

Later in the View class the File_Properties_Array (lets call is FPA) is populated and there is a need to store and retrieve it later from a text  file.
I tried using the conventional (FPA.serialize(ar)), but it throws an exception when I read from the file, becuse of data incompatability reasons.

Could anybody please tell me , how would I serialize this class and then how would I store objects of class File_Properties.

Your reply would be very helpful.

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Recently I've had a related discussion about serializing :

CArray is probably not the right tool when it comes to serializing.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial