在CMyView.cpp上面添加 #include "afxmt.h"
然后在CMyView.cpp中定义了一个全局变量 CEvent ev;定义为CMyView中的成员变量也是一样.
编译就会出错:
error C2146: syntax error : missing ';' before identifier 'eventObj'
error C2501: 'CEvent' : missing storage-class or type specifiers
fatal error C1004: unexpected end of file found请问这是怎么回事???