?
Solved

Serializing SDI document data into two parts.

Posted on 2004-08-08
1
Medium Priority
?
269 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 300 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

719 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