Can a WinForms app be configured to run as “x86” without recompiling?

From request-response.com/blog/PermaLink,guid... You can, however, control and override this default behaviour even after your code has been compiled. There's a handy tool called corflags. Exe present in the SDK that allows you to force 'anycpu' compiled code to use 32-bit process in 64-bit world The usage of this utility is found here msdn.microsoft.com/en-us/library/ms16469...).aspx.

From request-response.com/blog/PermaLink,guid... You can, however, control and override this default behaviour even after your code has been compiled. There's a handy tool called corflags. Exe present in the SDK that allows you to force 'anycpu' compiled code to use 32-bit process in 64-bit world.

The usage of this utility is found here msdn.microsoft.com/en-us/library/ms16469...).aspx.

I tried this out on our customer's server, and it worked with flying colors! Thanks. My only complaint is that it took for freaking-ever to install the Windows SDK on the Windows Server 2003 machine.

– flipdoubt Oct 9 '08 at 20:43 You could have installed it on a development machine and altered the exe on that. :) – Rory Becker Oct 10 '08 at 18:49.

No configuration ought to be needed if you wrote your managed code correctly. As long as the 64-bit machine has the proper frameworks installed, the JIT process will take care of any of the differences between 32 and 64 bit requirements. The only thing you need to be concerned about in your own code is if you were doing any P/Invoke.In that case, any time you call an API function that utilizes a HANDLE or void* type, you need to ensure that you always use System.

IntPtr, and not System. Int32.In the . NET world, the int data type is ALWAYS 32 bits, even on a 64 bit machine.

Likewise a long is always 64 bits, no matter what architecture. And IntPtr however is always the size of void*, and so properly JIT's to different sizes depending on the architecture of the machine you're running on.

I found this link helpful too: blogs.intesoft.net/2007/12/default.aspx.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions