简体   繁体   中英

C# 32bit project under 64bit windows

I'm working on a form application, I use plenty of hardware, Wiimote, USBjoystick and serial port. It all worked fine under 32bit windows, but I had to upgrade to 64bit for some other apps I'm working on.

I did some research and it is possible to develop x86 apps under x64 system, but now I don't know if this is what I want. The trouble maker is obviously directX sdk. AFAICS another option is, to install a virtual x86 machine specificly for developing this app (I don't want dual boot). I've never used this before, so I'm kinda worried that all this hardware won't work under virtual machine. I'm using wiimoteLib and blueSoleil to connect bluetooth. So will this work. And do I use windows 7's virtual xp option, or a different virtual machine software? I'd probably use winXP as a virtual OS.

32 bit applications run perfectly fine on 64 bit operating systems. I have lots of my applications developed for 32 bit and they run without any issues in 64 bit. As you say you have lots of hardware used we can't be sure which may work or may not work.

best solution is to run your app in 64 bit and see if anything is not working (I am sure 95% will work) and then come back here with specific questions.

I had the same problem running a 32 bit app on a 64 bit development computer. On VS 2010 I had to go to Properties/ Configuration Manager/New and choose x86 . Then I did a clean and rebuild and it ran fine.

  1. Inside IIS (7) click on Application Pools.

  2. Find the Application Pool that is configured for your web application in the list.

  3. Select it, then click Advanced Settings on the right.

  4. Second setting in the list: Enable 32-Bit Applications - must be set to True.

在Visual Studio中编译应用程序时,请尝试将目标平台设置为x86而不是“任何CPU”(项目选项/构建/目标平台)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM