Hi! The member fucntions of all wxConfig classes are basically the same since they all derive from wxConfigBase.
A small example
#include <wx/confbase.h>
#include <wx/msw/iniconf.h>
...
...
wxIniConfig *config = new wxIniConfig("Bla","Blabla",".\\Preferences.ini","",wxCONFIG_USE_LOCAL_FILE);
wxString value;
config->SetPath("/SomeSection");
config->Read("MyKey", &value);
wxMessageBox("The value of MyKey in section SomeSection is: "+value);
...
...
Preferences.ini would look like this [SomeSection] MyKey=TheValueOfMyKey
upcaseupCASE ----------------------------------- If it was hard to write, it should be hard to read!- Do. Or do not. There is no try! |