I'm using the CreateFile() function from win32 to open a file. it works ok when I include the full path to the file but fails when I just use the name of the file which is located in the same directory as the debug exe. I'm using VC++ 6.
Code:
FileHandle = CreateFile("C:\\Documents and Settings\\Dannyboy\\My Documents\\ICC Programmer project\\FileWizard\\Debug\\Extensions.csv", GENERIC_READ | GENERIC_WRITE, 0, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
this is ok but this fails:
Code:
FileHandle = CreateFile("Extensions.csv", GENERIC_READ | GENERIC_WRITE, 0, NULL,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
thanks