Solved

File Persistence

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Login Script to Copy Folders 12 21
Best tools for Backup and restore of Wordpress site 6 53
lucky13 challenge 11 112
isEverywhere  challenge 19 64
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

16 Experts available now in Live!

Get 1:1 Help Now