2 wangwenjing90 wangwenjing90 于 2013.06.20 12:02 提问

error C2632: 'char' followed by 'char' is illegal

把原来的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;

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!