32bit or 64bit compiled application

How do you tell if an app has been compiled in 32bit, 64bit or any cpu.  There is a great little tools called corflags.  Corflags is built into visual studio.  You can open a visual studio command prompt to run this tools.  I created a vs2010 solution with 3 projects, the project were compiled with the above 3 options.  Here is the feed  back from corflags:

My applcations are capps32, cappsany, and capps.  I compiled each to a specific target compiled architecture.

the breakdown of how to determine if your application is compiled for any cpu , x86, or 64bit is

anycpu: PE = PE32 and 32BIT = 0
x86: PE = PE32 and 32BIT = 1
64-bit: PE = PE32+ and 32BIT = 0

 

 

Leave a Comment