Thanks for your attention to my question!

Honestly, this was my feeling too – there is no way to create a generic logic that will convert any object to a byte scream because objects can be very different, especially in the way they manage the recourses.

So basically the conclusion is that you have to provide each object with a procedure that explains how to serialize/deserialize its members, right? Do you know about any standard approaches? What do you think about using MFC Serialization w/CArchive ?

Thanks a lot for your help!