把原来的C文件中的函数封装成一个类成员函数,在.h头文件中。运行就提示一些错误,不知道怎么解决。
c:\program files\microsoft sdks\windows\v7.0a\include\windef.h(154): error C2632: 'char' followed by 'char' is illegal
3>c:\program files\microsoft sdks\windows\v7.0a\include\windef.h(154): warning C4091: 'typedef ' : ignored on left of 'unsigned char' when no variable is declared
3>c:\program files\microsoft sdks\windows\v7.0a\include\windef.h(155): warning C4114: same type qualifier used more than once
3>c:\program files\microsoft sdks\windows\v7.0a\include\windef.h(155): error C2632: 'short' followed by 'short' is illegal
3>c:\program files\microsoft sdks\windows\v7.0a\include\windef.h(155): warning C4091: 'typedef ' : ignored on left of 'unsigned short' when no variable is declared
3>c:\program files\microsoft sdks\windows\v7.0a\include\windef.h(172): error C2632: 'int' followed by 'int' is illegal
3>c:\program files\microsoft sdks\windows\v7.0a\include\windef.h(172): warning C4091: 'typedef ' : ignored on left of 'int' when no variable is declared
3>c:\program files\microsoft sdks\windows\v7.0a\include\winnt.h(331): error C2632: 'char' followed by 'char' is illegal
windef.h中的定义
typedef unsigned long DWORD;
typedef int BOOL;
typedef unsigned char BYTE;