Ori Lahav
2009-04-17 13:51:38 UTC
Hello wxUsers,
I'm pretty sure this question was asked a few times, but I can't find any
useful answer. I'm working on an option to save and load the project. I have
two problems with it:
1. (De)Serializing basic types (int, ...): How do I serialize them, and how
do I make it portable? I know there is a problem with byte order
(Big-Endian, Little-Endian).
2. wxObjects (wxString, wxSize, ...): How do I serialize wxString? Do I have
to create a function for each wxWidgets object (e.g. serialize the
wxSize.Width and Height separately)? And what about the other classes?
Thanks!
Ori.
I'm pretty sure this question was asked a few times, but I can't find any
useful answer. I'm working on an option to save and load the project. I have
two problems with it:
1. (De)Serializing basic types (int, ...): How do I serialize them, and how
do I make it portable? I know there is a problem with byte order
(Big-Endian, Little-Endian).
2. wxObjects (wxString, wxSize, ...): How do I serialize wxString? Do I have
to create a function for each wxWidgets object (e.g. serialize the
wxSize.Width and Height separately)? And what about the other classes?
Thanks!
Ori.