convert relative path into absolute path via wxFileName::Normalize

chris elliott biol75 at york.ac.uk
Fri Jan 5 11:54:48 PST 2007


sorry, I don't see this in 2.4.2, 2.4 CVS branch or 2.8 windows XP / 
borland compiler

chris

Xu, Ming (NIH/NLM/NCBI) [F] wrote:
> 
>       *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
> 
>  
> 




More information about the wx-users mailing list