error LNK2001

Searching for \’PathFileExists\’…
F:\ElecRoc2\SourceCode\PJTP\ColorPrnParam\ParamSet.cpp(959):  if (!name.IsEmpty() && PathFileExists(name))
F:\ElecRoc2\SourceCode\PJTP\ColorPrnParam\ParamSet.cpp(1153):  else if (!name.IsEmpty() && !PathFileExists(name))
F:\ElecRoc2\SourceCode\PJTP\ColorPrnParam\ParamSet.cpp(1680):  if (!name.IsEmpty() && PathFileExists(name))
Cannot open file \’F:\ElecRoc2\SourceCode\PJTP\ColorPrnParam\ProofE.ncb\’.
F:\ElecRoc2\SourceCode\PJTP\ColorPrnParam\ProofE.plg(75):ParamSet.obj : error LNK2001: unresolved external symbol __imp__PathFileExistsA@4
4 occurrence(s) have been found.

 

solution:

Header shlwapi.h
Import library shlwapi.lib

Project Settings:

Link:

Object/library modules: shlwapi.lib

 

版权声明:本文为MayGarden原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/MayGarden/archive/2009/07/08/1519167.html