Am I running as a 32 or 64-bit application?
Here’s an easy way to determine if a .NET application is running as either 32 or 64-bit application.
VB
If IntPtr.Size = 8 Then
Response.Write("64-bit")
ElseIf IntPtr.Size = 4 Then
Response.Write("32-bit")
End If
End Sub
C#
{
if (IntPtr.Size == 8)
{
Response.Write("64-bit");
}
else if (IntPtr.Size == 4)
{
Response.Write("32-bit");
}
}
I am a .NET programmer first and foremost. But in my spare time I like to play around with PHP, Erlang, Haskell, F#,