?
Solved

File Persistence

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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. …
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.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

752 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