I want the config file to be in the user's application data directory. On Windows Vista that would be: C:\Users\user-name\AppData\Local\app-name\settings.txt
So I do:
Code: Select all
conf = new wxFileConfig(_T("Foo"),
wxEmptyString,
wxStandardPaths::Get().GetUserLocalDataDir() + wxFileName::GetPathSeparator() + _T("settings.txt"),
wxEmptyString,
wxCONFIG_USE_LOCAL_FILE);
This:
Code: Select all
wxStandardPaths::Get().GetUserLocalDataDir() + wxFileName::GetPathSeparator() + _T("settings.txt")
C:\Users\user-name\AppData\Local\app-name\settings.txt
Reading/Writing settings works (per app instance), but the app-name directory, and the settings file do not exist...
So what is the deal? Anyone know what I'm doing wrong?
I'm using wxWidgets 2.8.7 (Unicode), on Windows Vista.
Edit:
Looks like the file isn't being created for some reason... ?