升级VC ++项目从VS 2010到VS2012的错误 [英] Errors in Upgrading VC++ project from VS 2010 to VS2012

查看:1716
本文介绍了升级VC ++项目从VS 2010到VS2012的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图更新一个Visual C ++ VS 2010项目到VS 2012.我现在更长时间有权从MSDN重新安装VS2010,所以我安装我的学院提供了在Dreamspark网站,这是VS2012。

I am trying to update a Visual C++ VS 2010 project to VS 2012. I now longer have access to reinstall VS2010 from the MSDN, so I am installing what my college has made available on the Dreamspark website, which is VS2012.

安装后我试图建立这个项目,我收到了超过100错误,但第一个是:

After installation I tried to build the project, and I received over 100 errors but the first one was this:

错误C1083:无法打开包含文件:'SDKDDKVer.h':没有此类文件或目录

修复了这个错误,第二个答案,因为没有VS2010安装在除了两个Redistributables,对于卸载的x64,x86的计算机上:新安装VS 2012将不会构建默认控制台应用程序:缺少SDKDDKVer.h(和stdio.h / CRT) a>

I fixed that error by following this post, 2nd answer since there was no VS2010 installed on the computer except for two Redistributables, for x64, x86 which were uninstalled: Fresh installation of VS 2012 will not build default console application: Missing SDKDDKVer.h (and stdio.h / CRT)

和:


  • 删除了Visual Studio 2010 x86,x64 Redistributables

  • 重新安装的Windows 7 SDK(以及适用于x64,x86的VS2010再分发版)

  • 添加了新的路径变量到项目>项目属性> GL和7.1程序文件/ Microsoft SDKs / Windows / v7.1中的lib文件夹

错误:

C1083:无法打开包含文件:'winapifamily.h':没有这样的文件或目录C:\Program Files(x86)\Microsoft Visual Studio 11.0 \VC\include\comdef.h 51

error C1083: Cannot open include file: 'winapifamily.h': No such file or directory C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\include\comdef.h 51

我看到一篇关于如何硬编码winapifamily.h在Codeblocks中的类似错误的帖子:"winapifamily.h:没有这样的文件或目录当在Code :: Blocks中编译SDL

I saw a post on how to hardcode winapifamily.h for a similar error in Codeblocks here: "winapifamily.h: No such file or directory" when compiling SDL in Code::Blocks

但是在VS 2012中,这个解决方案是什么?我将把winapifamily.h文件放到哪个目录?

but what is the equivalent solution to this in VS 2012? What directory would I put the winapifamily.h file in?

编辑:这里似乎有一个修复程序的问题,该应用程序最初的目标是Win7,但VS2012目标Win8。因此,我将在此下载更新,并查看其是否正常: https://www.microsoft.com/en-us/download/details.aspx?id=39305

EDIT: There appears to be a hotfix to the issue here, which is that the application was originally targeted for Win7 but the VS2012 targets Win8. So I am going to download the update here and see if it works: https://www.microsoft.com/en-us/download/details.aspx?id=39305

推荐答案

我已经解决了这个问题,使用编辑中提到的修补程序(更新4,VS2012)。此外,在与OpenCV相关的应用程序中有一些循环依赖问题与这个问题无关,所以通过使用该修补程序,我相信我发现了一个更广泛的问题,openCV头文件,我可以以直接的方式解决。

I have fixed this problem using the hotfix mentioned in the edit (Update 4, VS2012). Additionally, there is some circular dependency problems going on in the application related to OpenCV which has nothing to do with this question, so by using the hotfix I believe I have uncovered a broader issue with openCV header files which I can resolve in a straightforward manner.

这篇关于升级VC ++项目从VS 2010到VS2012的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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