VC++ 6.0 中 DWORD_PTR

来源:互联网 发布:今年最流行的网络语 编辑:程序博客网 时间:2024/05/21 18:42
编译一个程序,发现报告

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;
原创粉丝点击