I get the following error :
argument of type "const char *" is incompatible with parameter of type "LPCWSTR"
Here is my code :
static char *getFmuPath(const char *fileName) {
char pathName[MAX_PATH];
int n = GetFullPathName(fileName, MAX_PATH, pathName, NULL);
return n ? strdup(pathName) : NULL;
}
I have declared MAX_PATH
but it still shows error in pathname
#define MAX_PATH 4096
What is the problem ?