Compiling on a 64-bit system for a 32-bit system - compatibility

I have a 64-bit machine with 64-bit OS ...

how can I compile programs with Visual Studio 2010 so that they work on a 32-bit system

if I install a 32-bit OS on my 64-bit machine than I think this will not be a problem

+6
compiler-construction visual-studio-2010 32bit-64bit
source share
2 answers

If you're talking about .NET applications, just make sure you target x86 to the properties of your project (this is the default) or any processor:

enter image description here

+10
source share

This is a nice feature of compiled code at the exact moment in time. It also works on a 32-bit machine (using x86 jitter) as a 64-bit machine (x64 jitter). The only time you get into a problem is when you need to use legacy unmanaged code, available only as 32-bit machine code. Not uncommon with older database providers (such as Jet) and COM servers. You have the right machine to detect these problems early.

Underscore: You have no problem if the target computer is 32-bit, only if it is a 64-bit machine.

+3
source share

All Articles