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

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

Greg Haberek wrote:
> If anything, chdir() and current_dir() should use the Win32 API routines
> instead
> of the c library routines. I'm all for this. :)
> 
> -Greg

Couldn't that effect Windows command line programs or introduce subtle bugs
between command line programs on different platforms?

I would just leave chdir() and current_dir() as is and implement the Win32
specific directory routines in the lib, and recommend that users use those
routines.

Make a note in the documentation that Windows routines have side effects on
chdir() and current_dir().

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu