32位和64位应用程序中的不同资源文件中的问题。 [英] Problem in diffrent Resource file in 32bit and 64bit Application.

查看:45
本文介绍了32位和64位应用程序中的不同资源文件中的问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要32位和64位的不同资源文件 应用。 Visual Studio 2010.


预处理器_WIN64无法识别RC文件,在资源属性中添加了_WIN64"预处理器定义" ,但没有帮助。任何帮助真的很明显

解决方案

嗨朋友,


欢迎来到MSDN论坛。


#1:众所周知,默认VS2010只有一个平台win32。要获得一个可以正常工作的X64平台,也许你可以从
获得一些帮助和
vs2019预览社区
,他们是免费,更方便,更强大。


希望以上所有有帮助。并且反馈是否有用是预期的:)


最好的问候


Lance


I need different resource file in 32-bit and 64-bit  application. Visual Studio 2010.

Preprocessor _WIN64 not recognizing in RC file ,added _WIN64 in resource property "preprocessor definition" ,but did not help. any help really appreciable

解决方案

Hi friend,

Welcome to MSDN forum.

#1:As we all know a default VS2010 has only one platform win32. To get a X64 platform which can work exactly, maybe you can get some help from this issue. (We need the toolset for X64, not only change the target machine to X64)

#2:If you've configured the developer environment successfully, then which way you use the _WIN64?

I'm not sure the 'resource property' you mean. But maybe you can use the _WIN64 in another way:

For me, I add two menu resources to the resource folder. After that we can have their definitions in Resource.h like this:

We can use the _Win64 in this way to check if the _Win64 works:



#3:Then for 32-bit app, it will only use menu1 resource. And if we use 64-bit app, it will only use the menu2 resource. But the point is make sure you have configured x64 environment successfully.

In addition: I test it on my side with vs2012 and vs2017, it all works perfectly to meet your needs. But for vs2010, since it needs to install the win7.1 SDK to compile as X64, I can't install it successfully for some unknown reason in win10. 

And since VS2010 is not the latest vs version. I suggest you can have a try vs2017 community and vs2019 preview community, they are free, more convenient and powerful.

Hope all above helps. And a feedback whether it's helpful would be expected:)

Best Regards

Lance


这篇关于32位和64位应用程序中的不同资源文件中的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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