-
Feb 24th, 2009, 10:39 PM
#1
Thread Starter
Lively Member
[RESOLVED] Remember program
Hi, I'm developing a program and i need my program to remember settings people have done, how can this be done?
What i mean is, if i let the user set the background color to green, close the program and it'll remember "Aha green background"
-
Feb 24th, 2009, 10:53 PM
#2
Re: Remember program
There are several ways: before the app closes, store/update the settings to a database, registry or file, like an INI file. When the app opens, retrieve the settings and apply them as needed. Here is an example of reading/writing INI files within the FAQ's section of the forum.
-
Feb 24th, 2009, 10:53 PM
#3
Hyperactive Member
Re: Remember program
Outputting settings to a file is the most common way, search reading and writing of text files.
-EDIT-
5 seconds too late, LaVolpe gave better info than me!
-
Feb 24th, 2009, 10:55 PM
#4
Thread Starter
Lively Member
Re: Remember program
Thank you very much, you guys!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|