Board index » Visual Studio » CArray Serialization

CArray Serialization

Visual Studio343
I 've a problem with CArray serialization...i have a CObArray containing

objects formed by CArray variables...i don't know how serialize them...any

help?


-
 

Re:CArray Serialization

MarcoMB wrote:



Quote
I 've a problem with CArray serialization...i have a CObArray containing

objects formed by CArray variables...i don't know how serialize them...any

help?



Marco:



This advice may not help you, but I would say:



1. Don't use CArray or any of the MFC collection classes. Use the

standard library (e.g. std::vector).



2. Don't use MFC binary serialization. Use XML instead.



David Wilkinson

-

Re:CArray Serialization

I use Visual Studio 6.0 so can i use xml serialization ?

-

Re:CArray Serialization

MarcoMB wrote:



Quote
I use Visual Studio 6.0 so can i use xml serialization ?



Of course. But you will either have to write your own parser or get a

3rd party library.



But if you are not already commited to binary serialization, my advice

would certainly be to avoid it.



David Wilkinson

-

Re:CArray Serialization

I've used the ExPat open-source library for some projects.

joe



On Wed, 08 Nov 2006 19:48:46 -0500, David Wilkinson <no-reply@effisols.com>wrote:



Quote
MarcoMB wrote:



>I use Visual Studio 6.0 so can i use xml serialization ?



Of course. But you will either have to write your own parser or get a

3rd party library.



But if you are not already commited to binary serialization, my advice

would certainly be to avoid it.



David Wilkinson

Joseph M. Newcomer [MVP]

email: newcomer@flounder.com

Web: www.flounder.com">www.flounder.com

MVP Tips: www.flounder.com/mvp_tips.htm">www.flounder.com/mvp_tips.htm

-