使用PathFileExists函数后的错误,怎么解决?
sms88 2006-08-16 03:11:38 我的程序是基于对话框模式的,使用下面的函数就会链接出错.我已经包含了头文件#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)