Virtual Mike's - Resource Strings

MS Visual C++ v4.1

How do I access the application's INI file?


CWinApp* pApp = AfxGetApp();

// get a pointer to this Application Object
CString s;
s = pApp->GetProfileString( "section", "entry" );

or to assign a value to a Profile string you would use:
s = pApp-> WriteProfileString( "section", "entry", "new string value" ) ;


Return to Virtual Mike's Front Door | VC++ Q & A Page | Developer Links Page