Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...