Hey so i am trying to create a file and this is part of my code.
HANDLE hFile;
if((hFile = CreateFileA("Testfile.txt", GENERIC_WRITE, FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, 0, 0)) != INVALID_HANDLE_VALUE)
{
//and so on
Now the problem is that i cant create the file in the program(exe) path. I can create it like c:\\what ever but i want to create it in the exe path, how can i do this?
thanks.