如何构建针对 64 位环境的解决方案? [英] How to build a solution to target 64 bit environment?

查看:28
本文介绍了如何构建针对 64 位环境的解决方案?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有在 vs2003 中构建针对 64 位环境的解决方案?我的解决方案是本机 c++,而不是 Visual c++.任何帮助将不胜感激.

Is there anyway to build a solution to target 64 bit environment in vs2003? My solution is native c++ not visual c++. Any help would be greatly appreciated.

干杯,

RWendi

推荐答案

这个关于 2003 年缺乏 64 位定位的页面似乎解决了您的问题:http://www.toymaker.info/Games/html/64_bit.html.

This page on 2003's lack of 64-bit targeting seems to address your issue: http://www.toymaker.info/Games/html/64_bit.html.

第一步是为 64 位开发设置我的开发环境.我使用 Visual Studio 2003,它对 64 位开发几乎没有内置支持.

The first step was to set up my development environment for 64 bit development. I use Visual Studio 2003 which has little built in support for 64 bit development.

为了创建 64 位应用程序,您需要安装 Microsoft 的最新平台 SDK(Microsoft Platform SDK for Windows Server 2003).SDK 以及用于 32 位编程的库,还有用于 AMD64 和 IA64(英特尔)开发的 64 位版本.

In order to create 64 bit applications you need to install the latest Platform SDK from Microsoft (Microsoft Platform SDK for Windows Server 2003). The SDK, as well as having libraries for 32 bit programming, has 64 bit versions for AMD64 and IA64 (Intel) development.

事实证明,在 Visual Studio 中设置正确的库和头文件路径非常困难.我想要选择开发 32 位或 64 位项目.虽然平台 SDK 带有命令文件来设置正确的路径,但它们会清除任何其他路径.由于 T2 使用 DirectX,我还需要正确设置 DirectX 路径.

Getting the correct library and header file paths set up in Visual Studio proved surprisingly difficult. I wanted the choice of developing 32 bit or 64 bit projects. While the platform SDK comes with command files to set up the correct paths they wipe out any other paths. Since T2 uses DirectX I also needed the DirectX paths setting correctly.

如果可能,升级到较新版本的 Visual Studio 看起来是更安全、非黑客的解决方案.

Upgrading to a newer edition of Visual Studio looks like the safer, non-hackish solution, if possible.

这篇关于如何构建针对 64 位环境的解决方案?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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