Re: Opening a file - File Open Dialog spoils future code

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt Lewis wrote:
> 
> I've run a simple test, and the c-library and win32 routines seem 
> interchangeable, which isn't surprising, since the runtime library probably
> just wraps the win32 functions.  Now we need to find the magic that disrupts
> this behavior:

OK, I found an easy way to unwittingly change the current directory.  It 
doesn't appear to be documented:

http://msdn2.microsoft.com/en-us/library/ms646927.aspx

...but calling the open (and presumably save, though I didn't check that)
dialog changes the current dir.  I added the snippet below to the end of
my little test app, and selected a file to open.  The current directory
was where the file was.

include win32lib.ew

void = getOpenFileName( 0, "", {})
checkdir()


new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu