Re: Olaf can you explain.... - XCC Forum | Register | Login | Search History | Home | Messages |
Olaf can you explain.... | ViPr | 19:43 06-11-2001 | ||
Re: Olaf can you explain.... | Olaf van der Spek | 00:30 07-11-2001 | ||
Re: Olaf can you explain.... | ViPr | 04:25 07-11-2001 | ||
Re: Olaf can you explain.... | Olaf van der Spek | 19:29 07-11-2001 | ||
Re: Olaf can you explain.... | ViPr | 07:39 08-11-2001 | ||
Re: Olaf can you explain.... | will | 17: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 Spek | 20:39 08-11-2001 | 2 | |
Re: Olaf can you explain.... | will | 20:50 08-11-2001 | ||
Re: Olaf can you explain.... | Long_Gone | 21:09 08-11-2001 | ||
Re: Olaf can you explain.... | ViPr | 08:03 09-11-2001 |
Home | Post | Users | Messages |