wxGetEnv returns wrong val ?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
armink
Experienced Solver
Experienced Solver
Posts: 79
Joined: Tue Aug 31, 2004 10:25 am
Location: Bavaria / Germany

wxGetEnv returns wrong val ?

Post by armink »

Hello,

I try to get the value of the TEMP variable under Win XP.

Its value is

c:\documents and settings\user ... etc

But when I use GetEnv, it returns a path like

c:\docume~1\user\... etc ...

Anybody a clue whats wrong ?

Working with wx2.4.2/XP/Cygwin
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE »

Hi!
Anybody a clue whats wrong ?
There's nothing wrong, except that the variables only return the paths on 8.3 notation.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
armink
Experienced Solver
Experienced Solver
Posts: 79
Joined: Tue Aug 31, 2004 10:25 am
Location: Bavaria / Germany

Thanks ...

Post by armink »

but I need the full notation for further use of the path.

So I have to find another solution ?
upCASE
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE »

Hi!
Maybe wxFileName::CreateTempFileName() could be of some help?
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda
armink
Experienced Solver
Experienced Solver
Posts: 79
Joined: Tue Aug 31, 2004 10:25 am
Location: Bavaria / Germany

yeah ...

Post by armink »

Tried it out , Thats it !

Thank you ! :D