Solved

Save dialog box info

Posted on 1999-01-17
3
205 Views
Last Modified: 2010-04-16
How do i save all the info in the dialog box??
i can have all the info in the dialog box when i retrieve the document again.
Thanks
0
Comment
Question by:at75
3 Comments
 
LVL 1

Expert Comment

by:The_Brain
ID: 1184422
what exactly do you want?
0
 

Expert Comment

by:_serega
ID: 1184423
You can manupulate with data in dialog boxes by UpdateData()
This functions works in both directions
0
 
LVL 32

Accepted Solution

by:
jhance earned 20 total points
ID: 1184424
Most applications save session-to-session data in the registry.  Before your dialog app exits, it should write all of the data to be saved to it's own registry key.  The recommended placed is to create your own like:

HKEY_LOCAL_MACHINE\Software\YOUR COMPANY NAME\YOUR APPLICATION

if the data is system (i.e. all users) wide or in

HKEY_CURRENT_USER\Software\YOUR COMPANY NAME\YOUR APPLICATION

below either of these keys, you can store whatever data you need to preserve.

When your app starts up again, go back and read the data from the registry and stuff it back into your dialog.

See the docs on:

RegOpenKeyEx()
RegQueryValueEx()
RegCreateKeyEx()
RegCloseKey()
RegSetValueEx()
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

772 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