Solved

Serialization

Posted on 1998-11-13
2
263 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

776 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