开发者

C# 32bit project under 64bit windows

开发者 https://www.devze.com 2023-02-01 13:35 出处:网络
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 worki

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开发者_C百科 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.


  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.


When compiling your application in Visual Studio, try setting the target platform to x86 rather than "any CPU" (Project options/build/target platform).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号