Solved

Save dialog box info

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

737 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