Re: Olaf can you explain.... - XCC ForumRegister | Login | Search
History | Home | Messages

Olaf can you explain....ViPr19:43 06-11-2001
Re: Olaf can you explain....Olaf van der Spek00:30 07-11-2001
Re: Olaf can you explain....ViPr04:25 07-11-2001
Re: Olaf can you explain....Olaf van der Spek19:29 07-11-2001
Re: Olaf can you explain....ViPr07:39 08-11-2001
Re: Olaf can you explain....will17:23 08-11-2001

> i thought when you don't give a directory then it
> assumes the directory is the one the exe is running
> from, no?

no.

it is the 'current directory', and can be affected by all
kinds of things.

if you want the same directory as the exe is running in,
then you can examine args[0], which is the full command
line (path and all, I think) and replace the name of the
exe with the name of the ini file, and you have a valid
pathname. (there are neater ways to do this, but this is
a hacker's approach and it usually works)

why do I offer advice to closed-source code? If it was
open source, I could just look in and see the problem and
be more useful, and quicker... :mad:


Re: Olaf can you explain....Olaf van der Spek20:39 08-11-20012
    Re: Olaf can you explain....will20:50 08-11-2001
Re: Olaf can you explain....Long_Gone21:09 08-11-2001
Re: Olaf can you explain....ViPr08:03 09-11-2001


Home | Post | Users | Messages