View Single Post
Old 04-22-2005, 10:36 PM   #3 (permalink)
enemite
Registered User
 
Join Date: Sep 2004
Posts: 2
enemite is on a distinguished road
Send a message via AIM to enemite Send a message via MSN to enemite Send a message via Yahoo to enemite
Thumbs up

Thanks! That's basically what I ended up doing. Just had to get the file name off the end. When I start the program and open a file, it will be in the last folder I opened a file from, even when I restart it. So I couldn't use GetCurrentDir() in the beginning because it wouldn't be in the right directory.

Ended up using SetCurrentDirectory() with the proper value. It works and that's all that matters. Going to try the getcwd() and chdir() though, just to see how they work.

By the way, you mentioned using argv[0], is there a way to find the number of arguments, too? Or are all the args just one string? And yeah, i'm using "Windoze". XP to be exact.
enemite is offline   Reply With Quote