Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variables

Status
Not open for further replies.

d0s

Programmer
Apr 15, 2004
48
US
Ok ive done alot of searching and i can't come up with anything. How do you save variables in your program. Only way i can think of is writing to the registry. Is there any other way to save variables so if someone checked a checkbox it would be checked when the program loads again or if they type something into a editbox it would load the text too? ive been reading Programming Windows, fifth edition and believe it or not in that 1479 page book, they dont' talk about loading/saving variables. Any ideas? thanks
 

Registry is one way or a simple text/ini file is another. I myself prefer to put only important information in the registry and use other means (database, text/ini file etc.) to store stuff that can be lost but will not hurt the running of the program. Also if I have a large amount of information to store I make the tough decision of what do I really need to keep in the registry and what I don't.

It is all a matter of personal preference and how much data.

Good Luck

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top