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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I store user preferences? HELP!

Status
Not open for further replies.

qedusa

Programmer
Jan 12, 2002
43
US
This may seem like a really silly question but let me explain...
I'm porting a program from Mac to Windows. I can use the strict ANSI routines to read and write a preferences structure to disk no problem. However, not being a seasoned PC user (yet) I don't know where in the system folder all programs usually store their user's preference settings OR what format (ie. DOS extension) I should use for this.
There may not even be a "written-in-stone" recommendation for this (in which case I'll probably just store in same folder as program iteself) but if there is, I'd like to know where and what format?
Can anyone help?
Thanks!
 
Windows registry cab be used to store the program options.
check the functions, writeProfileInt,writeProfileString and
GetProfileInt,GetProfileString.
 
Many thanks for that pointer - I'll give it a try!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top