Solved

Save dialog box info

Posted on 1999-01-17
3
182 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
Comment Utility
what exactly do you want?
0
 

Expert Comment

by:_serega
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
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 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.

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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now