News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

GetOpenFileName changes my working dir ?

Started by BlackVortex, September 12, 2008, 06:12:16 PM

Previous topic - Next topic

BlackVortex

I was having problems checking for the existence of a file, and then I realized that it was because of a GetOpenFileName call. How can I properly preserve my working dir after that function ? (without saving and restoring it)

Maybe something wrong in my OPENFILENAME Structure ? I will paste code if needed.

[STN]

Hey,

Try using the OFN_NOCHANGEDIR flag ?.

QuoteOFN_NOCHANGEDIR   
Restores the current directory to its original value if the user changed the directory while searching for files.

BlackVortex

Haha, thank you, I got lost in msdn and my brain is kinda fried after hours of coding      :thumbu