Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am migrating VS2008 to VS2012 Project.
as the Include File of shfolder.h is no more supported in VS2012
i have included "shlobj.h" file.

when i replace this i am getting errors as

error C2065: 'PFNSHGETFOLDERPATHW' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'pfnSHGetFolderPath'
error C2065: 'pfnSHGetFolderPath' : undeclared identifier
error C2065: 'pfnSHGetFolderPath' : undeclared identifier
error C2065: 'pfnSHGetFolderPath' : undeclared identifier
error C2065: 'PFNSHGETFOLDERPATHW' : undeclared identifier
//.....

what to do for replace SHGetFolderPath(...) in VS2012.


Thanks,
uday
Posted
Updated 22-Aug-13 0:43am
v2
Comments
max_nowak 22-Aug-13 6:53am    
Have you included Shell32.lib to your project?

1 solution

cut of the "W" and it should be fine from: PFNSHGETFOLDERPATHW

The headers have changed and it wont run on Windows XP!!!!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900