none
How to force a .NET app to run as 32 bit RRS feed

  • Question

  • Hello .NETters,

    One of our older .NET application that was tested only under 32-bit environment, now breaks when run under 64-bit environment. I recall there is a way to change the PE file signature to force-run a .NET application to run as 32-bit. Can someone please tell me what that application is and how to use it?

    Thank you in advance for your help.

    Regards,
    Peter
    Friday, August 1, 2008 7:43 PM

Answers

All replies

  • You must target to the x86 platform when you build the project.
    MSMVP VC++
    • Marked as answer by Zhi-Xin Ye Thursday, August 7, 2008 2:23 PM
    Friday, August 1, 2008 8:42 PM
  • Hi Sheng,

     Thank you for your help.

    I do know how to specify the target during building the project. However, this is a released product and we do not support any further development on this version.

    I also do know that there is a way to force PE file to change the attribute to run as 32-bit. I have done it in the past. However, I just can't recollect what application I used to do it (i am getting old). I would appreciate it if someone can tell me what this application is.

    Regards,

    Peter

    Friday, August 1, 2008 8:51 PM
  • You used Corflags.exe, find it in the SDK's bin folder.
    Hans Passant.
    • Marked as answer by Zhi-Xin Ye Thursday, August 7, 2008 2:23 PM
    Friday, August 1, 2008 9:09 PM
    Moderator