用于非托管C ++应用程序的WIN64 / WIN32预处理器,使用针对x64的Visual Studio 2012进行编译 [英] WIN64 / WIN32 preprocessor for unmanaged C++ application compile with Visual Studio 2012 targeting x64

查看:131
本文介绍了用于非托管C ++应用程序的WIN64 / WIN32预处理器,使用针对x64的Visual Studio 2012进行编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Windows 7 64位上的Visual Studio 2012构建非托管代码仅针对64位Windows 7,我应该使用WIN64预处理器进行编译还是WIN32?我被告知一些Windows标题仍然依赖于WIN32预处理器在项目设置中出现
。我无法找到WIN64或WIN32开关可以区分的内容。

We are building unmanaged code using Visual Studio 2012 on Windows 7 64 bit targeted for 64 bit Windows 7 only, Should i be using WIN64 pre- processor for compile or WIN32? I am told some windows headers still depend on WIN32 pre processor being present in the project setting. I am not able to find much on what WIN64 or WIN32 switch would differentiate.

推荐答案

>我们正在使用Windows 7 64位上的Visual Studio 2012构建非托管代码仅针对64位Windows 7,我应该使用WIN64预处理器进行编译还是WIN32?

>We are building unmanaged code using Visual Studio 2012 on Windows 7 64 bit targeted for 64 bit Windows 7 only, Should i be using WIN64 pre- processor for compile or WIN32?

鉴于你的情况,为什么你需要关注任何这样的b $ b b符号?

Given your situation, why do you need to be concerned about any such
symbols at all?

根据:

http://msdn.microsoft.com/en-us / library / b0084kay (v = vs.80).aspx

http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.80).aspx

"

_WIN32为Win32和Win64的应用程序定义。始终定义。

_WIN64为Win64的申请定义。

"

"
_WIN32 Defined for applications for Win32 and Win64. Always defined.
_WIN64 Defined for applications for Win64.
"

Dave


这篇关于用于非托管C ++应用程序的WIN64 / WIN32预处理器,使用针对x64的Visual Studio 2012进行编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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