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

Need to load application data from a text file?? 1

Status
Not open for further replies.

sjmolloy

Programmer
Aug 23, 2001
14
GB
I have written a simple MFC application.
Up until now I have been hard coding a lot of information in the code.
I know need to set up a configuration file that will hold values for everything from listbox contents to values for single variables.
A bit like an ini file I believe.
Can anyone tell me how you go about doing this??
Maybe someone has an example of how you do this for the list box and I can work the rest out from there ???
 
see Thread207-121751 about ini files Ion Filipski
1c.bmp


filipski@excite.com
 
It may be better to use SetProfileInt()/GetProfileInt(), SetProfileBinary()/GetProfileBinary() and SetProfileString()/GetProfileString() in Your child CWinApp class.
 
tchouch, have you been attentive? My post is the same thing. Ion Filipski
1c.bmp


filipski@excite.com
 
Thanks for the time ..I am now happily reading data in from files !!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top