Page 1 of 1

How to get Absolute Path of the Temp Directory

Posted: Fri Jun 17, 2005 2:00 pm
by MuhammadSohail
Hallo ,

Anyone can help me to get the absolute path of the Temp Directory in wxWidgets.


Posted: Fri Jun 17, 2005 2:27 pm
by armink
I use this with wx2.4.2 ...

Code: Select all

wxString xml_file_g = wxFileName::CreateTempFileName ("xml");
                wxFileName fnxml (xml_file_g);

                wxString xmlDir =
                    fnxml.GetPath (wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR+fnxml.GetPathSeparator();
otherwise may be a solution in wxstandarpaths ...