我收到以下错误:
argument of type "const char *" is incompatible with parameter of type "LPCWSTR"
这是我的代码:
static char *getFmuPath(const char *fileName) {
char pathName[MAX_PATH];
int n = GetFullPathName(fileName, MAX_PATH, pathName, NULL);
return n ? strdup(pathName) : NULL;
}
Run Code Online (Sandbox Code Playgroud)
我已经声明了,MAX_PATH但是路径名仍然显示错误
#define MAX_PATH 4096
Run Code Online (Sandbox Code Playgroud)
问题是什么 ?