I'm trying to use PathIsDirectory in a unicode build but always getI've included shlwapi.h and link to shlwapi.lib .Code:error LNK2001: unresolved external symbol __imp__PathIsDirectoryW@4
Can anyone please help me out with this ?
Printable View
I'm trying to use PathIsDirectory in a unicode build but always getI've included shlwapi.h and link to shlwapi.lib .Code:error LNK2001: unresolved external symbol __imp__PathIsDirectoryW@4
Can anyone please help me out with this ?
Are you sure about shlwapi.lib? You seem to not have had added it to the build you were compiling
My workspace has an app and dll project. I've included shlwapi.h in the dll stdafx.h and linked shlwapi.lib in the dll project settings.
The call to PathIsDirectory is at application level. Does this explain the linking error ?
use #pragma comment (lib, "shlwapi.lib") at the top of your application source, ie: linking lib with the app.