Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/138.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/firebase/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 64位部署_C++_Visual Studio_Visual Studio 2010_Deployment_64 Bit - Fatal编程技术网

C++ 64位部署

C++ 64位部署,c++,visual-studio,visual-studio-2010,deployment,64-bit,C++,Visual Studio,Visual Studio 2010,Deployment,64 Bit,我想开始制作我的应用程序的64位,但是,我不确定我应该对我的sln和vsproj文件进行哪些更改。我应该对我的sln和vsproj进行哪些更改以使其成为64位 同样的,对默认的sln或项目文件是否有对游戏开发有益的更改?我正在使用VisualStudio2010 从VS菜单中选择构建|配置管理器 在Configuration Manager对话框中,打开平台下拉列表并选择 在新建项目平台对话框中,选择x64作为您的平台,然后单击确定。您需要添加x64解决方案平台: Build -> Con

我想开始制作我的应用程序的64位,但是,我不确定我应该对我的sln和vsproj文件进行哪些更改。我应该对我的sln和vsproj进行哪些更改以使其成为64位


同样的,对默认的sln或项目文件是否有对游戏开发有益的更改?我正在使用VisualStudio2010

从VS菜单中选择
构建
|
配置管理器

在Configuration Manager对话框中,打开
平台
下拉列表并选择


在新建项目平台对话框中,选择
x64
作为您的平台,然后单击确定。

您需要添加
x64解决方案平台

Build -> Configuration Manager -> Active Solution Platform -> New -> New platform = x64
如果没有看到“x64”,请确保在Visual Studio安装程序中安装了它


然后只需选择“x64”作为活动解决方案平台并构建

即可添加到前面提到的内容中,确保您理解为什么需要64位支持。在大多数情况下,您不需要访问更大的内存分配。另外,请注意,将存在x86/x64 P/Invoke兼容性问题(如果您计划使用第三方非托管程序集,以防您使用托管C++)


有关更多信息,请阅读内容。另外,作为旁注,我建议您阅读一些解释迁移思想的文章。

要运行64位应用程序,您可能需要一个64位处理器,因此我想您应该在64位处理器上编译它们。您可以在32位系统上构建64位应用程序,但您不能运行它们。请记住,除非您需要较大的地址空间,否则64位应用程序有明显的缺点,但优势很少。什么是“64位应用程序的明显缺点,但优势很少”?64位应用程序没有明显的缺点。由于额外的寄存器,许多应用程序实际上运行得更快。顺便说一句,人们应该注意到,流行的Visual Studio 2010 Express并没有配备64位编译器。