Visual C++ 64bit应用程序项目设置
Visual Studio 2005
This topic describes how to set up C++ applications to target 64-bit platforms using project configurations available in the Visual Studio Integrated Development Environment (IDE).
To develop 64-bit applications you must install one or both of the Visual C++ 64-bit compilers, otherwise 64-bit project configurations will not be available in the IDE. See Installing Visual Studio 64-bit Components for information.
|
Note |
|
64-bit tools are not available on Visual C++ Express Edition by default. To enable 64-bit tools on Visual C++ Express Edition, install the .NET Framework SDK in addition to Visual C++ Express Edition. Otherwise, an error occurs when you attempt to configure a project to target a 64-bit platform using Visual C++ Express Edition. |
The first procedure describes how to change the active project configuration to target 64-bit platforms using the Visual Studio IDE. The second procedure describes how to migrate Win32 project settings into a 64-bit project configuration.
To set up C++ applications to target 64-bit platforms
- Open the C++ project that you want to configure to target a 64-bit platform.
- Open the property pages for that project. For more information, see How to: Open Project Property Pages.
|
Note |
|
For .NET projects, make sure the Configuration Properties node, or one of its child nodes, is selected in the <Projectname> Property Pages dialog box. Otherwise, the Configuration Manager button remains disabled. |
- Click Configuration Manager to open the Configuration Manager Dialog Box.
- Click the Active Solution Platform list, and then select the <New…> option to open the New Solution Platform Dialog Box.
- Click the Type or select the new platform drop-down arrow, and then select a 64-bit platform.
|
Note |
|
In the New Solution Platform dialog box, you can copy existing project settings into the new 64-bit project configuration using the Copy settings from option. |
- Click OK. The platform you selected in the preceding step will appear under Active Solution Platform in the Configuration Manager dialog box.
- Click Close in the Configuration Manager dialog box, and then click OK in the <Projectname> Property Pages dialog box.
To copy Win32 project settings into a 64-bit project configuration
- When the New Solution Platform dialog box is open while you set up your project to target a 64-bit platform, click the Copy settings from drop-down arrow, and then select Win32. The following project settings are automatically updated on the project level:
- /MACHINE (Specify Target Platform) is set to /MACHINE:IA64 or /MACHINE:X64.
- Register Output is turned OFF. For more information, see Linker Property Pages.
- Target Environment is set to /env
x64 or /env
ia64. For more information, see MIDL Property Pages: General. - Validate Parameters is cleared and reset to the default value. For more information, see MIDL Property Pages: Advanced.
- If Debug Information Format was set to /ZI in the Win32 project configuration, then it is set to /Zi in the 64-bit project configuration. For more information, see /Z7, /Zi, /ZI (Debug Information Format).
- Values of WIN32 are replaced by WIN64 for /D (Preprocessor Definitions).
|
Note |
|
None of these project properties are changed if they are overridden on the file level. |
Visual Studio 2008
This topic describes how to set up C++ applications to target 64-bit platforms using project configurations available in the Visual Studio Integrated Development Environment (IDE).
To develop 64-bit applications you must install one or both of the Visual C++ 64-bit compilers, otherwise 64-bit project configurations will not be available in the IDE. See Visual Studio 64-bit Components for information.
|
|
|
64-bit tools are not available on Visual C++ Express by default. To enable 64-bit tools on Visual C++ Express, install the Windows Software Development Kit (SDK) in addition to Visual C++ Express. Otherwise, an error occurs when you attempt to configure a project to target a 64-bit platform using Visual C++ Express. |
The procedures in this topic describe how to change the active project configuration to target 64-bit platforms using the Visual Studio IDE, and how to migrate Win32 project settings into a 64-bit project configuration.
To set up C++ applications to target 64-bit platforms
- Open the C++ project that you want to configure to target a 64-bit platform.
- Open the property pages for that project. For more information, see How to: Open Project Property Pages.
|
|
|
For .NET projects, make sure the Configuration Properties node, or one of its child nodes, is selected in the <Projectname> Property Pages dialog box. Otherwise, the Configuration Manager button remains disabled. |
- Click Configuration Manager to open the Configuration Manager Dialog Box.
- Click the Active Solution Platform list, and then select the <New…> option to open the New Solution Platform Dialog Box.
- Click the Type or select the new platform drop-down arrow, and then select a 64-bit platform.
|
|
|
In the New Solution Platform dialog box, you can copy existing project settings into the new 64-bit project configuration using the Copy settings from option. |
- Click OK. The platform you selected in the preceding step will appear under Active Solution Platform in the Configuration Manager dialog box.
- Click Close in the Configuration Manager dialog box, and then click OK in the <Projectname> Property Pages dialog box.
To copy Win32 project settings into a 64-bit project configuration
- When the New Solution Platform dialog box is open while you set up your project to target a 64-bit platform, click the Copy settings from drop-down arrow, and then select Win32. The following project settings are automatically updated on the project level:
- /MACHINE (Specify Target Platform) is set to /MACHINE:IA64 or /MACHINE:X64.
- Register Output is turned OFF. For more information, see Linker Property Pages.
- Target Environment is set to /env
x64 or /env
ia64. For more information, see MIDL Property Pages: General. - Validate Parameters is cleared and reset to the default value. For more information, see MIDL Property Pages: Advanced.
- If Debug Information Format was set to /ZI in the Win32 project configuration, then it is set to /Zi in the 64-bit project configuration. For more information, see /Z7, /Zi, /ZI (Debug Information Format).
|
|
|
None of these project properties are changed if they are overridden on the file level. |
Visual C++ 64bit应用程序项目设置的更多相关文章
- 用于 Visual Studio 和 ASP.NET 的 Web 应用程序项目部署常见问题
https://msdn.microsoft.com/zh-cn/library/ee942158(v=vs.110).aspx#can_i_exclude_specific_files_or_fol ...
- 如何:使用 Visual Studio 中的一键式发布来部署 Web 应用程序项目
原文: 如何:使用 Visual Studio 中的一键式发布来部署 Web 应用程序项目 本主题介绍如何在以下产品中使用 一键式发布 发布(部署)Web 应用程序项目: Visual Studio ...
- 中小研发团队架构实践之生产环境诊断工具WinDbg 三分钟学会.NET微服务之Polly 使用.Net Core+IView+Vue集成上传图片功能 Fiddler原理~知多少? ABP框架(asp.net core 2.X+Vue)模板项目学习之路(一) C#程序中设置全局代理(Global Proxy) WCF 4.0 使用说明 如何在IIS上发布,并能正常访问
中小研发团队架构实践之生产环境诊断工具WinDbg 生产环境偶尔会出现一些异常问题,WinDbg或GDB是解决此类问题的利器.调试工具WinDbg如同医生的听诊器,是系统生病时做问题诊断的逆向分析工具 ...
- Web 应用程序项目与 Visual Studio 中的网站项目的异同
要查看英语原文,请勾选“英语”复选框.也可将鼠标指针移到文本上,在弹出窗口中显示英语原文. 翻译 英语 本文档已存档,并且将不进行维护. Web 应用程序项目与 Visual Studio 中的网站项 ...
- 在 Visual Studio 2013 中创建 ASP.NET Web 项目(1):概述 - 创建 Web 应用程序项目
注:本文是“在 Visual Studio 2013 中创建 ASP.NET Web 项目”专题的一部分,详情参见 专题导航 . 预备知识 本专题适用于 Visual Studio 2013 及以上版 ...
- 【微信小程序项目实践总结】30分钟从陌生到熟悉 web app 、native app、hybrid app比较 30分钟ES6从陌生到熟悉 【原创】浅谈内存泄露 HTML5 五子棋 - JS/Canvas 游戏 meta 详解,html5 meta 标签日常设置 C#中回滚TransactionScope的使用方法和原理
[微信小程序项目实践总结]30分钟从陌生到熟悉 前言 我们之前对小程序做了基本学习: 1. 微信小程序开发07-列表页面怎么做 2. 微信小程序开发06-一个业务页面的完成 3. 微信小程序开发05- ...
- Android eclipse 运行项目设置程序默认安装到SD卡
Android eclipse 运行项目设置程序默认安装到SD卡 1.在Android手机启用USB调试功能 2.在Windows系统中打开命令提示符(开始菜单,选择运行,输入cmd回车即可),使用 ...
- 未能将基于用户的Visual C++项目设置保存到user文件错误的解决
作者:朱金灿 来源:http://blog.csdn.net/clever101 最近遇见一个诡异错误,将Win7家庭版升级到Win7旗舰版.然后使用原来安装的VS2008开发,保存工程时总是出现未能 ...
- 开发环境中biztalk项目设置注意事项(转)
适用版本:biztalk 2006 适用环境:开发测试环境 在开发过程中,在开发环境中,一定会是一个对项目不断的修改.编译.部署.测试,查看测试结果,发现有问题,然后回到开发环境再修改.编译.部署 ...
随机推荐
- C#.NET面向对象(语法点)
一.继承 C#中继承的规则 1:继承是可传递的 A:B B:C 2:派生类应当是对基类的扩展.派生类可以添加新的成员,但不能除去已经继承的成员的定义. 3:构造函数和析构函数不能被继承 4:如果派 ...
- Integer to Roman(JAVA)
public String intToRoman(int num) { int[] values={1000,900,500,400,100,90,50,40,10,9,5,4,1}; String[ ...
- jdbc读取数据库图片文件
package 读取大文件.read; import java.io.BufferedReader; import java.io.FileOutputStream; import java.io.I ...
- Oracle闪回详解
1.问题定义 闪回是dba做的工作.现在也可授权给某个用户. 闪回的定义:就是将用户错误的操作回恢到以前的状态.即使你的事务提交的commit. 如果你删除了一个表.Drop table(DDL) ...
- 你想不到的IT运维前途
本人一毕业就走上了IT系统运维的道路,我之所以踏上这条路并一直坚持了下来,因为觉得运维工作并非一味关注技术,而是关注包括技术在内的更综合的解决方案,也就是说,做运维,自己要学的知识面更广,考虑问题要更 ...
- Hibernate 关联关系映射实例
双向多对一/一对多(many-to-one/one-to-many) 例子,多个学生对应一个班级,一个班级对应多个学生: 班级类,Grade.java: public class Grade { pr ...
- <转>maven发布第三方jar的一些问题
在创建maven中私有仓库过程中,需要发布一些第三方jar到nexus仓库,使用命令的是 deploy:deploy-file 有许多参数,具体可查看 http://maven.apache.org/ ...
- Android 判断文件的类型
import java.util.HashMap; import java.util.Iterator; /** * 判断文件的类型 */ public class MediaFileUtil { p ...
- 写一个Windows上的守护进程(1)开篇
写一个Windows上的守护进程(1)开篇 最近由于工作需要,要写一个守护进程,主要就是要在被守护进程挂了的时候再把它启起来.说起来这个功能是比较简单的,但是我前一阵子写了好多现在回头看起来比较糟糕的 ...
- X - A == B ?(第二季水)
Description Give you two numbers A and B, if A is equal to B, you should print "YES", or p ...
Note:
Note:
Note:
Note: