TCHAR path[MAX_PATH]; //存放路径的变量 ZeroMemory(path, 255); GetCurrentDirectory(MAX_PATH, path); //获取程序的当前目录