Solved

File Persistence

Posted on 2000-04-11
1
122 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
how to monitor remote shell execution on linux 9 100
viewing source code from eclipse 13 107
MaxSpan challenge 9 96
fix34  challenge 9 119
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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