Page 1 of 1
wxFileConfig example?
Posted: Fri Jul 10, 2015 12:24 pm
by Anthony11
can someone write or find an example for wxFileConfig read/write, pretty please?
[ininame]
iniarg1=value1
iniarg2=value2
iniarg3=value3
Re: wxFileConfig example?
Posted: Fri Jul 10, 2015 12:52 pm
by doublemax
Re: wxFileConfig example?
Posted: Fri Jul 10, 2015 1:01 pm
by Anthony11
thanks a bunch
Re: wxFileConfig example?
Posted: Fri Jul 10, 2015 1:09 pm
by Anthony11
Code: Select all
wxFileConfig * config = new wxFileConfig( "", "", filename);
config->Read( wxT("/initScript"), &initializationFile);
config->Read( wxT("/scriptEditor"), &scrEd);
config->Read( wxT("/imageEditor"), &imgEd);
delete config;
can you fix my read function as well?
Re: wxFileConfig example?
Posted: Fri Jul 10, 2015 1:25 pm
by doublemax
Code: Select all
initializationFile = config->Read( wxT("/initScript") );
Re: wxFileConfig example?
Posted: Fri Jul 10, 2015 1:34 pm
by Anthony11
doublemax wrote:Code: Select all
initializationFile = config->Read( wxT("/initScript") );
sorry, my mistake, i've forgot to enter full path in 'filename'