1

Can I create an application that can work on both windows platforms (32 / 64 bit ) at the same time ? if no , how can i create 64bit version and 32bit version ?

rekire
  • 47,260
  • 30
  • 167
  • 264
user1970090
  • 215
  • 4
  • 7
  • 15

1 Answers1

2

Yes you can - just set the compile option in Vizual Studio to AnyCPU (Build>Configuration Manager>Active Solution Platform). To Target 32bit or 64 bit set the platform to x86 or x64 respectively

Have a look at this link explaining the differences

But AnyCPU is not necessarily the best option - so have a look at this article: AnyCPU is it evil and make up your own mind what setting you would like

If you are using Visual Studio Express then have a look at this question and answers explaining how to do this

Community
  • 1
  • 1
Matt Wilko
  • 26,994
  • 10
  • 93
  • 143
  • Ok thank you Matt for help . But I have only 86x platform , I can't find AnyCPU or 64bit – user1970090 Jan 16 '13 at 09:55
  • @user1970090 - `Build>Configuration Manager>Active Solution Platform` then select `New...` from the dropdown – Matt Wilko Jan 16 '13 at 10:08
  • Are these apply to express 2010 studio ? because there's no build tab , neither in in project settings . – user1970090 Jan 16 '13 at 10:22
  • IMHO is *AnyCPU is it evil* nonsense! You just need to keep in mind that you need to add x86 and x64 dlls. That is very simple. – rekire Jan 16 '13 at 16:04