使用PathFileExists函数后的错误,怎么解决?
我的程序是基于对话框模式的,使用下面的函数就会链接出错.我已经包含了头文件#include <shlwapi.h>
GetModuleFileName(NULL,chSelfPath,sizeof(chSelfPath));
char *pSearch=strrchr(chSelfPath,'\\');
pSearch[0]='\0';
strcat(chSelfPath,"\\Config");//文件夹不存在,创建文件夹;
if(!PathFileExists(chSelfPath))
CreateDirectory(chSelfPath,NULL);
--------------------Configuration: test - Win32 Debug--------------------
Linking...
testDlg.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
test.exe - 2 error(s), 0 warning(s)
GetModuleFileName(NULL,chSelfPath,sizeof(chSelfPath));
char *pSearch=strrchr(chSelfPath,'\\');
pSearch[0]='\0';
strcat(chSelfPath,"\\Config");//文件夹不存在,创建文件夹;
if(!PathFileExists(chSelfPath))
CreateDirectory(chSelfPath,NULL);
--------------------Configuration: test - Win32 Debug--------------------
Linking...
testDlg.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
Debug/test.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
test.exe - 2 error(s), 0 warning(s)
...全文
相关推荐
18650锂电池套膜机圆柱套标机sw17可编辑全套技术资料100%好用.zip
18650锂电池套膜机圆柱套标机sw17可编辑全套技术资料100%好用.zip
机械设计18650锂电池套膜机圆柱套标机sw17可编辑非常好的设计图纸100%好用.zip
机械设计18650锂电池套膜机圆柱套标机sw17可编辑非常好的设计图纸100%好用.zip
锂电池自动贴胶纸机sw17可编辑全套技术资料100%好用.zip
锂电池自动贴胶纸机sw17可编辑全套技术资料100%好用.zip
电芯铝塑膜冲坑机sw14全套技术资料100%好用.zip
电芯铝塑膜冲坑机sw14全套技术资料100%好用.zip
方型锂电池卷绕机sw14可编辑全套技术资料100%好用.zip
方型锂电池卷绕机sw14可编辑全套技术资料100%好用.zip


