usvpn Posted April 29, 2010 Posted April 29, 2010 I really have no idea why there's no built-in function to detect platform, I need to know I am running on x64 or x86? Even in .NET Framework 4.0, there's no such thing! Well, my application is set to "Any CPU" Can I use: If IntPtr.Size = 8 Then 'x64() ElseIf IntPtr.Size = 4 Then 'x86 End If And make sure it will work OK on all conditions? Or you know a better way? Thanks Quote
Administrators PlausiblyDamp Posted April 29, 2010 Administrators Posted April 29, 2010 The Environment class will tell you this Environment.Is64BitProcess Environment.Is64BitOperatingSystem Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.