Serialization questions
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
I have two questions pertaining to serialization.
- I have nested classes but want save each class into seperate files how do go about doing this
and2. If want to able to open files in range of different extensions e.g *.csv, *.prn and *.txt. How is this achieved?
Again many thanks Alton
- I have nested classes but want save each class into seperate files how do go about doing this
-
I have two questions pertaining to serialization.
- I have nested classes but want save each class into seperate files how do go about doing this
and2. If want to able to open files in range of different extensions e.g *.csv, *.prn and *.txt. How is this achieved?
Again many thanks Alton
1. Using MFC serialisation mechanisms, you don't. The assumption is made that a single file will contain the entire document. Indeed, use is made of a 'class dictionary' within an MFC archive file, unless you redo the serialisation from scratch. 2. There's a KB article (141921) which covers this nicely. Steve S
- I have nested classes but want save each class into seperate files how do go about doing this