J
Jona
Issue:
*Get the path location of my executable.
Semi Fix..
*Using getcwd() or plainly giving no path would also do the job...
say reading a file...
*The problem is when I call other functions like...
CreateDirectory("foo",NULL)
it changes my default directory to \foo folder...
so when I call getcwd() or simply don't give a path to access a file,
now the default folder is foo ....
Any Idea why this happens? how can it be defaulted back to its
original path?
is there a better way to do this?
thanks,
Jonathan
*Get the path location of my executable.
Semi Fix..
*Using getcwd() or plainly giving no path would also do the job...
say reading a file...
*The problem is when I call other functions like...
CreateDirectory("foo",NULL)
it changes my default directory to \foo folder...
so when I call getcwd() or simply don't give a path to access a file,
now the default folder is foo ....
Any Idea why this happens? how can it be defaulted back to its
original path?
is there a better way to do this?
thanks,
Jonathan