为什么在Windows x64上IntPtr.size为4? [英] why IntPtr.size is 4 on Windows x64?

查看:479
本文介绍了为什么在Windows x64上IntPtr.size为4?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为使用IntPtr.Size时应该得到8.但是我仍然可以在Widnows 7 x64的x64机器上获得4,为什么?

I think I should get 8 when I use IntPtr.Size. However I still get 4 on x64 machine with Widnows 7 x64, why?

推荐答案

检查您的文件CPU体系结构,是否为x86?应该是CPU any/64bit

check your file CPU architecture, is it x86? It should be CPU any / 64bit

这篇关于为什么在Windows x64上IntPtr.size为4?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆