请教关于CDib中的问题
我写了DIBAPI的头文件和实现文件,定义了CDib类,我在DIBAPI.h中声明了HDIB句柄,即DECLARE_HANDLE(HDIB),在CDib类中包含有DIBAPI的头文件,可是我在CDib.h中定义如下变量HDIB m_hDIB时,在编译CDib文件时总是出现下面的错误:
f:\image\dib.h(26) : error C2146: syntax error : missing ';' before identifier 'm_hDIB'
f:\image\dib.h(26) : error C2501: 'HDIB' : missing storage-class or type specifiers
f:\image\dib.h(26) : error C2501: 'm_hDIB' : missing storage-class or type specifiers
请问这是什么原因?