Link to home
Start Free TrialLog in
Avatar of qocarlos
qocarlosFlag for Saint Kitts and Nevis

asked on

About Serialization

Hi all,

I am currently giving the finishing touches of large application (MDI,
Doc/View) and one of the last features still to implement is the command
'Save'.
I have derived all my classes from CObject so I thought that I could use
serialization mechanism. The problem with this is that I need to document
the format of my files so other people could write converters for these
files. Is this possible with the standar serialization mechanism?
It would be absolutely great if anybody could give me some examples about
how to do this.

Thanks in advance,
Carlos
Avatar of bholz
bholz

There is imho no way to document this thing. You have to gibe away the header files of the CDocument-Class (and all other serialized classes) you serialize to disk so that any other can serialze in your CDocument and convert it.

Regards,

Bernd

Avatar of qocarlos

ASKER

Bernd,
thank you for your answer, but I need more information about this.
Do you recomend me to leave serialization?
ASKER CERTIFIED SOLUTION
Avatar of bholz
bholz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks and sorry for the delay.
I have decided to define my own file format. Everything now
is working fine except that I don't know how to save the ole objects inserted in the application (it is a containter application).
I have asked this question also in experts-exchange.
Any idea
I never programmed an OLE container by now but I guess there is no other way than using you own format but serializing the OLE Object.. I don't know how other OLE containers save their documents...

Bye,

Bernd