-
March 30th, 2011, 04:46 AM
#1
PathIsDirectory
I'm trying to use PathIsDirectory in a unicode build but always get
Code:
error LNK2001: unresolved external symbol __imp__PathIsDirectoryW@4
I've included shlwapi.h and link to shlwapi.lib .
Can anyone please help me out with this ?
-
March 30th, 2011, 05:28 AM
#2
Re: PathIsDirectory
Are you sure about shlwapi.lib? You seem to not have had added it to the build you were compiling
Victor Nijegorodov
-
March 30th, 2011, 05:36 AM
#3
Re: PathIsDirectory
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 ?
-
March 30th, 2011, 05:54 AM
#4
Re: PathIsDirectory
use #pragma comment (lib, "shlwapi.lib") at the top of your application source, ie: linking lib with the app.
◄◄ hypheni ►►
-
March 30th, 2011, 06:02 AM
#5
Re: PathIsDirectory
Originally Posted by zvenny
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 ?
Yes.
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|