Prev: Problems with wxThread::Wait in a dll under windows
Next: AW: Create a .ini config file on a different directory
From: "Max Velasques" on 16 Jan 2007 09:56 I´m developing a program that uses the class wxFileConfig to create a .ini file with the program configurations. I use the class like this: wxFileConfig *config = new wxFileConfig(wxT("FileName")); config->Write(option,tmpvalue); config->Read(option,&tmpvalue); This class works perfectly and create the file "FileName.ini" file on the HOME directory. Now I want to be able read/write a config file from a different location. So, I ask if exist some easy way of doing this? Thanks!! Max -- --------------------------------- Do you want portability? Try wxWidgets (www.wxwidgets.org) --------------------------------- Multithreaded download manager: wxDownload Fast - http://dfast.sourceforge.net
From: Piotr Starczewski on 16 Jan 2007 10:08
I have done it by using wxFileConfig::Save(wxOutputStream). You can save ..ini wherever you want. Regards, Peter Max Velasques wrote: > I�m developing a program that uses the class wxFileConfig to create a > .ini file with the program configurations. > I use the class like this: > > wxFileConfig *config = new wxFileConfig(wxT("FileName")); > config->Write(option,tmpvalue); > config->Read(option,&tmpvalue); > > This class works perfectly and create the file "FileName.ini" file on > the HOME directory. > Now I want to be able read/write a config file from a different location. > So, I ask if exist some easy way of doing this? > > Thanks!! > > Max > > -- > --------------------------------- > Do you want portability? > Try wxWidgets (www.wxwidgets.org <http://www.wxwidgets.org>) > > --------------------------------- > Multithreaded download manager: > wxDownload Fast - http://dfast.sourceforge.net --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org |