?
Solved

File Persistence

Posted on 2000-04-11
1
Medium Priority
?
128 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 150 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Loops Section Overview
Suggested Courses

864 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