I have a program that detects the current working directory via
char* buffer;
buffer=_getcwd(NULL,0);
MessageBoxA(0,buffer,"Working Directory",0);
If I run the exe directly, it comes back with the directory it's in. However, if I drag a file onto it, even if it's from the same directory, buffer returns "C:\Documents and Settings\me"
This is troubling because the assets are loaded from a subdirectory and the program now can't find them. I'd like to use a file I drag onto the exe but I don't want the working directory changed from where the file really is. Any ideas?