Coder's Guild Mailing List

Re: how to get the dir of an app

Posted by Hal Bonnin on 2000-04-03

GetCurrentDirectory(int size,char* location)
it is possible that a program might be loaded and the windows enviroment
could be set to another dir but this will work as long as the shortcut
doesnt put in a dirrerent working directory. i load this up at the begining
of my program so i can store the program location so i can make sure that
after opening a file i can restore the dir using SetCurrentDirectory(char*
where); towhere my scripting files are located.

To signoff send a mail to listserver@xxxx.xx.xx with 
  "signoff tcg" in the body of your message.