Solved

Serialization

Posted on 1998-11-13
2
261 Views
Last Modified: 2010-04-02
Hi everyone... I have a dialog based MFC. It will read a text file to get initial values. When the user exits the program, the text file will be updated with new initial values depending on what the user changed. I am concerned that the text file may be lost or seperated from the exe file. What can I do to avoid using a text file? I have had suggestions of using the registry, or using serialization. what is the best way and how do I do it? I read about serialization and got lost in the wording. Help... Thank you
0
Comment
Question by:rose337
2 Comments
 
LVL 5

Expert Comment

by:yonat
ID: 1177827
If it's just a few fields in a dialog box, just use the registry and don't bother with serialization.
0
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 70 total points
ID: 1177828
Searialization stores data in a separate file as well. The commonly used way in windows is to use the registry (Reg* functions), or Ini files.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

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