why IntPtr.size is 4 on Windows x64?
问题 I think I should get 8 when I use IntPtr.Size. However I still get 4 on x64 machine with Widnows 7 x64, why? 回答1: check your file CPU architecture, is it x86? It should be CPU any / 64bit 回答2: The 64 bit operating system implements an emulated environment known as WOW64 which emulates the 32 bit Windows environment. You are building your program targeting x86, i.e. 32 bit. That means that your process runs under the emulator as a 32 bit process and of course pointers are 4 bytes wide. If you