28 October, 2009

Run 32bit apps on x64 machine

I’ve shifted into running x64 bit (Windows 7) and am really liking it so far.

However - there is only one application that I could not get to work as it was written in C++ and for 32bit OSs. Well – Windows SDK to the rescue. The SDK contains a little utility called Corflags.exe. The CorFlags Conversion tool allows you to configure the CorFlags section of the header of a portable executable image. This means (in human terms) that you can force the OS to run the app anyway (even it was marked for x86 initially).

The syntax is this:
CorFlags.exe <myapp.exe> /32bit+

Just run this command once, and you can start the app on the 64 bit OS.

The SDK (for Win7) can be downloaded here: http://www.microsoft.com/downloads/details.aspx?familyid=C17BA869-9671-4330-A63E-1FD44E0E2505&displaylang=en

No comments:

iPhone/XCode - not all cases are equal!

This bit me! Having made some changes to an iPhone application (Obj-C); everything worked fine in the simulator. But, when deploying the s...