VC++ 6.0 中 DWORD_PTR

编译一个程序,发现报告

error C2501: 'DWORD_PTR' : missing storage-class or type specifiers

DWORD_PTR
Unsigned long type for pointer precision. Use when casting a pointer to a long type to perform pointer arithmetic. (Also commonly used for general 32-bit parameters that have been extended to 64 bits in 64-bit Windows. )

想起还没有装 SP6,安装了之后,没有这个问题了,不过我看看资料,加上这些也可以

typedef long  LONG_PTR;
typedef unsigned long  ULONG_PTR;
typedef ULONG_PTR  DWORD_PTR;

你可能感兴趣的:(VC++ 6.0 中 DWORD_PTR)