Solved

File Persistence

Posted on 2000-04-11
1
120 Views
Last Modified: 2013-11-20
I need to develop an application which allows the user to open/save files. The data consists of a linked list of objects, each containing pointers to other objects. I also want to be able to store bitmaps/OLE objects in the objects.

What methods are available/appropriate for doing this?

Any advice will be much appreciated.

Matt
0
Comment
1 Comment
 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 2705971
MFC's CArchive will do all the serialising for you (even when there are pointers) .. as long as your objects derive from CObject.

If you want to store OLE objects, then I'd suggest you use COleDocument which can contain COleClientItem's (which are OLE objects).  You can also then derive your objects from CDocItem and store them all in gthe COleDocument.  It will do all the serialising for you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now