Solved

Save dialog box info

Posted on 1999-01-17
3
227 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
[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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
  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 viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.

617 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