Solved

Serialization

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Handle Exceptions during instantiation 28 428
convert char array to number in c 5 91
Eclipse IDE - Cannot copy/paste from console output 8 307
Least Squares Curve Fitting 4 114
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

735 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