Solved

Serializing SDI document data into two parts.

Posted on 2004-08-08
1
261 Views
Last Modified: 2013-11-20
Hi,

I am working on a SDI application. My CDocument derived class holds a linked list of pointers to CObject derived objects which contains other linked lists of CObject derived objects. The first linked list contains data that almost never changes. The other linked lists  are much more variable.
Is it possible to serialize this document data into two parts for an SDI application. Lets say the more static data in a file with extension .ext1 and the more variable data in a file with extension .ext2. Is this good programming design and if it is, how presisely could this be achieved ?
0
Comment
Question by:bs161900
1 Comment
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 100 total points
ID: 11746569
>Is it possible to serialize this document data into two parts for an SDI application. Lets say the more static data in a file with
> extension .ext1 and the more variable data in a file with extension .ext2. Is this good programming design and if it is, how
> presisely could this be achieved ?
Yes, sure you can do it and could be a good programming practice if the case is proper.
By example, you can open a file with some extension, let say (.map, a city map), but as you create interest points, you can save them in a separate file (.ipt) because you don't want or you can't alter map file.
To achieve that, you have to build your own serialization functions (CDocument::Serialize is not the unique way). Also you can trap the OnNewDocument(), OnOpenDocument(), OnSaveDocument() and OnCloseDocument() document's events you manage serialization as you desire (even can not store in a standard file but in a database, or update a portion of an existing file).

0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 35
Expand to include initial dialog with two choices. 9 78
Tab names are off by one 5 54
"Black Box" Testing of Control System Software 2 52
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question