将vc ++升级到VS2015 [英] upgrade vc++ to VS2015

查看:187
本文介绍了将vc ++升级到VS2015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


我目前正在努力将我的代码C ++从VS2010升级到VS2015。我需要你帮助解决一些问题。


1。我的第一个问题是我需要选择哪个平台,Windows 8.1或10.首先我需要在Windows 7中编译我的项目,然后将更新.dll(在安装程序包中)发送给可能拥有Windows 7的用户或10 OS。第二个,我的团队中的程序员
有窗口7或10,我们需要两个操作系统都可以成功编译和调试项目。程序员可以使用任何操作系统,用户也可以在任何
操作系统中使用我们的更新?


2只能在Windows 7和10中使用VS2015定位到窗口10平台。我试图用VS2015打开我的项目,项目自动升级,默认平台是Windows 8.1。第一个我收到错误,如"无法打开包含文件:'windows.h':没有这样的文件或目录"。我添加了"$(WindowsSDK_IncludePath)"
在附加的include目录然后重建项目,我得到另一个错误"无法打开包含文件:'ctype.h':没有这样的文件或目录",我发现文件在"C:\中程序文件(x86)\ Windows Wits\10\Include\10.0.15063.0"哪个
似乎对于Windows 10的平台,是否有适用于Windows 8.1的ctype.h?无论如何,我包括这个位置,然后重建项目,虽然它是incorrct,我得到错误"无法打开包含文件'winres.h'",我正确舔"#include" winres.h""
然后选择"打开文件winres.h"的命令,它可以打开它但是loation是"C:\Program Files(x86)\ Windows Kits \8.1 \ Include" um\winres.h" ;.我不知道如何修复它。


现在我将平台切换到10.0.15063,然后我重建项目,我收到错误,如"TRK0005 找不到:" RC.EXE" ;.系统找不到指定的文件"。


任何人都可以帮忙吗?


非常感谢您的帮助!




Ngcc

解决方案

你好,


1。如果您希望您的应用程序也在Windows 7上运行,则必须将平台设置为Windows 7.当您编译平台Windows 10时,该应用程序将无法在Windows 7上运行。


2 。当您仅在VS 2015中打开旧项目时,将复制项目的旧设置。但是VS2015有新的设置。这就是你必须更改include dir的原因。
我建议打开一个新项目并比较设置和stdafx标题。

你的Windows Kits目录用于VS2015。对于另一个平台编译,使用相同的目录,但编译器为指定平台创建应用程序。


问候,Guido




Hello,

I am currently working on upgrade my code C++ from VS2010 to VS2015. I need your help for some issues.

1. My first question is which platform I need to choose, windows 8.1 or 10. The first I need to compile my project in windows 7 and then deliver the update .dll(in a setup package)to users who may have windows 7 or 10 OS. The second, the programer in my team who have window 7 or 10, we need both OS can compile and debug the project sucessfully. is possible only target to window 10 platform in both window 7 and 10 with VS2015, the programmer can use any OS and User also can use our update in any OS?

2. I tried to open my project with VS2015 and the project was upgraded automatically, the default platform is windows 8.1. The first I got error like "Cannot open include file: 'windows.h': No such file or directory". I added "$(WindowsSDK_IncludePath)" in additional include directory and then rebuild the project, I got another error "Cannot open include file: 'ctype.h': No such file or directory", I found the file was in "C:\Program Files (x86)\Windows Kits\10\Include\10.0.15063.0" which seems for platform of windows 10, is there a ctype.h for windows 8.1? anyway, I include this location and then rebuild the project although it is incorrct, I got error "cannot open include file 'winres.h'", I right lick "#include "winres.h"" and then select the command of "Open document winres.h", it can open it but the loation is "C:\Program Files (x86)\Windows Kits\8.1\Include\um\winres.h". I do not know how to fix it.

Now I switch the platform to 10.0.15063 and then I rebuild the project, I got error like "TRK0005 Failed to locate: "rc.exe". The system cannot find the file specified".

anyone can help on this?

Thanks a lot for your help in advance!


Ngcc

解决方案

Hello,

1. if you want your application to run on Windows 7 too, you must set the platform to Windows 7. When you compile for platform Windows 10, the application will not run on Windows 7.

2. when you only open the old project in VS 2015, the old Settings of your project are copied. But VS2015 has new settings. That's why you had to change the include dir for example.
I recommend to open a new project and compare the settings and stdafx header.
Your Windows Kits directory is used for VS2015. For another platform compilation, the same directory is used, but the compiler creates the app for the specified platform.

Regards, Guido



这篇关于将vc ++升级到VS2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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