64-bit Programming
-
Hello, Where can I read about the best practices for programming in C# to be compatible with both 32-bit and 64-bit platforms? I am relatively new to C#, so I was wondering whether it's possible to write a program that would be compatible on both 32-bit and 64-bit platforms. For example, if I use IntPtr, casting it to int (or long), adding IntPtr.Size and casting back to IntPtr, how do I do it to be compatible with both 32-bit and 64-bit platforms? I would be thankful for any helpful resources about best practices. Thank you.
-
Hello, Where can I read about the best practices for programming in C# to be compatible with both 32-bit and 64-bit platforms? I am relatively new to C#, so I was wondering whether it's possible to write a program that would be compatible on both 32-bit and 64-bit platforms. For example, if I use IntPtr, casting it to int (or long), adding IntPtr.Size and casting back to IntPtr, how do I do it to be compatible with both 32-bit and 64-bit platforms? I would be thankful for any helpful resources about best practices. Thank you.
Here you are: Migrating 32-bit Managed Code to 64-bit[^]
Giorgi Dalakishvili #region signature my articles My blog[^] #endregion