将VS2008迁移到VS2012 SHGetFolderPath(..)编译错误。 [英] migrating VS2008 to VS2012 SHGetFolderPath(..) compilation error.

查看:105
本文介绍了将VS2008迁移到VS2012 SHGetFolderPath(..)编译错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我正在将VS2008迁移到VS2012项目。

作为shxtder.h的包含文件在VS2012中不再受支持

我已经包含了shlobj.h文件。



当我更换这个我收到错误时



错误C2065:'PFNSHGETFOLDERPATHW':未声明的标识符

错误C2146:语法错误:缺少';'之前标识符'pfnSHGetFolderPath'

错误C2065:'pfnSHGetFolderPath':未声明的标识符

错误C2065 :'pfnSHGetFolderPath':未声明的标识符

错误C2065:'pfnSHGetFolderPath':未声明的标识符

错误C2065:'PFNSHGETFOLDERPATHW':未声明的标识符

/ / .....



如何在VS2012中替换SHGetFolderPath(...)。





谢谢,

uday

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

推荐答案

切断W它应该没问题:PFNSHGETFOLDERPATHW



标题已更改,不能在Windows XP上运行!!!!
cut of the "W" and it should be fine from: PFNSHGETFOLDERPATHW

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


这篇关于将VS2008迁移到VS2012 SHGetFolderPath(..)编译错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆