thiefmaster
Programmer
I'm trying to figure out how i can find the path to my program that I'm running. eg. if the program is in c:\myprog.exe, then the variable would be "c:\myprog.exe"
I know how to do this in C++ with argc and argv. then, all I need to do is take the value from argv[0]. However, my program is using WINAPI and i'm pretty sure it's not the same thing. I thought that maybe the path was stored in the cmdLine variable when the program starts, but that's everything but the argv[0] from C++...
Any help?
Thanks
I know how to do this in C++ with argc and argv. then, all I need to do is take the value from argv[0]. However, my program is using WINAPI and i'm pretty sure it's not the same thing. I thought that maybe the path was stored in the cmdLine variable when the program starts, but that's everything but the argv[0] from C++...
Any help?
Thanks