Does anyone know why this is and how I can have it correctly detect the working directory even when I drag a file onto the exe?
Here's the code I'm using:
#include "direct.h"
#include "stdio.h"
#include "conio.h"
void main()
{
char* buffer;
buffer=_getcwd(NULL,0);
printf("working directory: %s \n\n",buffer);
getch();
}
And here's the code, exe & 2008 Express project files:
http://www.mediafire...b73k885hxs8sx9a
Any help is appreciated. Thanks!