How to get Absolute Path of the Temp Directory

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
MuhammadSohail
Experienced Solver
Experienced Solver
Posts: 96
Joined: Fri Jun 17, 2005 1:53 pm
Location: Germany
Contact:

How to get Absolute Path of the Temp Directory

Post by MuhammadSohail » Fri Jun 17, 2005 2:00 pm

Hallo ,

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

thanks

armink
Experienced Solver
Experienced Solver
Posts: 79
Joined: Tue Aug 31, 2004 10:25 am
Location: Bavaria / Germany

Post by armink » Fri Jun 17, 2005 2:27 pm

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 ...

Post Reply