In my first C++ program for a Windows mobile PC I can't get PathFileExists to compile or link. In a function called PlotHeader I've got:
#include "shlwapi.h" ... int FileExists = PathFileExists("userfile.txt");
This gives the compiler error: error C2664: 'PathFileExistsW' : cannot convert parameter 1 from 'const char ' to 'LPCWSTR'
So I change the statement to: int FileExists = PathFileExists(L"userfile.txt");
This compiles OK but gives me the following linker error: error LNK2019: unresolved external symbol PathFileExistsW referenced in function "int __cdecl PlotHeader(struct HWND__ *,unsigned int,unsigned int,long)" (?PlotHeader@@YAHPAUHWND__@@IIJ@Z)