是code写在Vista的64对32位操作系统兼容? [英] Is code written in Vista 64 compatible on 32 bit os?

查看:179
本文介绍了是code写在Vista的64对32位操作系统兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在获得新的开发机和向上移动到Vista旗舰版64把我们的8GB内存的优势。我们经理要我们做的所有开发32位的虚拟机,以确保不会有任何问题与我们的code移动到生产中。

We are getting new dev machines and moving up to Vista 64 Ultimate to take advantage of our 8gb ram. Our manager wants us to do all dev in 32bit virtual machines to make sure there will be no problems with our code moving into production.

有没有什么办法,以保证最终的方案将工作的32位操作系统的? 我不介意使用虚拟机,但我不喜欢他们如何强迫你回一个单一的显示器类型视图。我喜欢我的移动工具栏VS关到我的另一台显示器。

Is there any way to guarantee the resultant programs will work on 32bit os's? I don't mind using virtual machines, but I don't like how they force you back into a "Single" monitor type view. I like moving my VS toolbars off to my other monitor.

编辑:我们正在使用Visual Studio 2005和2008年,VB.NET和/或C#

We are using Visual Studio 2005 and 2008, VB.NET and/or C#

编辑:使用喀拉$ P $宠物的<一个href="http://stackoverflow.com/questions/30543/is-$c$c-written-in-vista-64-compatible-on-32-bit-os#30643"相对=nofollow>答案,这些都是我过去常常把我的Visual Studio IDE中的步骤编译86/32位:

Using Harpreet's answer, these are the steps I used to set my Visual Studio IDE to compile x86 / 32bit:

  1. 单击建立和开放的配置管理器
  2. 选择活动解决方案平台下拉列表
  3. 选择86,如果它是在列表中,并跳到步骤5,如果不选择&LT;新建... >
  4. 在新的解决方案平台对话框中,选择x86和preSS确定
  5. 验证所选平台,为所有的项目都是86
  6. 点击关闭。
  1. Click Build and open Configuration Manager
  2. Select Active Solution Platform drop down list
  3. Select x86 if it is in the list and skip to step 5, if not Select <New...>
  4. In the New Solution Platform dialog, select x86 and press OK
  5. Verify the selected platform for all of your projects is x86
  6. Click Close.

享受。

感谢您, 基思

推荐答案

我在64位机的32位Windows的发展。这不是一个问题。你应该确保你的项目设置的x86模式下编译,以保守。你想通过解决方案中的每个项目,并仔细检查这一点。你也可以使用值为anycpu设置,但是这是一个有点风险较高,因为它会在开发计算机上运行不同于32位的机器。你要避免课程的64位模式。

I do development on 64 bit machines for 32 bit Windows. It's not a problem. You should make sure that your projects are set to compile in x86 mode in order to be conservative. You'll want to go through each project in the solution and double check this. You could also use the AnyCPU setting but that's a little riskier since it will run differently on your dev machine than a 32 bit machine. You want to avoid the 64bit mode, of course.

我碰到的问题是驱动程序时,应用程序被编译为64位,不工作(明确64位或值为anycpu编译和64位Windows上运行)。这些问题是通过使用x86编译坚持完全可以避免的。这应该显示在您的开发机器上的所有缺陷。

The problems I've run into are drivers that don't work when the app is compiled for 64 bit (explicitly 64 bit or AnyCPU compiled and running on 64 bit Windows). Those problems are completely avoidable by sticking with x86 compilation. That should reveal all flaws on your dev machines.

在理想情况下,你可以设置,可以对经常在32位计算机上执行的构建和测试环境。这应该安抚你的管理,让你避免了虚拟机作为桌面。

Ideally, you could set up a build and test environment that could be executed against frequently on a 32 bit machine. That should reassure your management and let you avoid the VM as your desktop.

这篇关于是code写在Vista的64对32位操作系统兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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