convert relative path into absolute path via wxFileName::Normalize
Xu, Ming (NIH/NLM/NCBI) [F]
mxu at ncbi.nlm.nih.gov
Thu Jan 4 13:00:11 PST 2007
Hello.
I have an input file, .\setting\setting2.xml and created a wxFileName
object InFileName, from it.
But after calling InFileName. Normalize(), the full path is still
".\setting\setting2.xml"
from InFileName. GetFullPath().
How can I convert relative path into an absolute path ?
Thanks
ming
========================================================
wxFileName::Normalize
bool Normalize(int flags = wxPATH_NORM_ALL, const wxString& cwd =
wxEmptyString, wxPathFormat format = wxPATH_NATIVE)
Normalize the path: with the default flags value, the path will be made
absolute, without any ".." and "." and all environment variables will be
expanded in it this may be done using another (than current) value of
cwd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070104/b8e9b40f/attachment.htm
More information about the wx-users
mailing list