强制.net 程序以32位模式运行

You can modify the PE header of the executable (using the "Corflags.exe" .NET Framework SDK utility) to force the executable to run in x86 mode on the x64 platform.

Information on "Corflags.exe" can be found here: http://www.request-response.com/blog/PermaLink,guid,cf345d71-cdc7-46b9-8c1c-eb21581a9222.aspx

The procedure is to:

  1. Go to the Start Menu, and Navigate to the "Microsoft Visual Studio 2008" folder, expand it and under the "Visual Studio Tools" folder, ran the "Visual Studio 2008 Command Prompt".
  2. In the command prompt, navigate to the folder where executable is located.
  3. Run the command "corflags /32BIT+ EXEName.exe"
  4. Run "corflags EXEName.exe" to verify that the "32BIT" flag was set to "1".
  5. You're done! You can now run the application properly.
原文地址:https://www.cnblogs.com/himax/p/9883305.html