主题:MFC的类型问题
在MFC中有许多类型比如UNIT都定义在什么文件中,当我在mydoc.h中用UNIT的时候会提示如下错误:rror C2146: syntax error : missing ';' before identifier 'm_nPenWidth'
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'UNIT' : missing storage-class or type specifiers
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'm_nPenWidth' : missing storage-class or type specifiers
SCRIBBLEDoc.cpp
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2146: syntax error : missing ';' before identifier 'm_nPenWidth'
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'UNIT' : missing storage-class or type specifiers
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'm_nPenWidth' : missing storage-class or type specifiers
SCRIBBLEView.cpp
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2146: syntax error : missing ';' before identifier 'm_nPenWidth'
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'UNIT' : missing storage-class or type specifiers
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'm_nPenWidth' : missing storage-class or type specifiers
Generating Code...
Error executing cl.exe.
SCRIBBLE.exe - 9 error(s), 0 warning(s)
肯定是在什么位置少包含了什么文件,能提示一下吗
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'UNIT' : missing storage-class or type specifiers
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'm_nPenWidth' : missing storage-class or type specifiers
SCRIBBLEDoc.cpp
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2146: syntax error : missing ';' before identifier 'm_nPenWidth'
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'UNIT' : missing storage-class or type specifiers
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'm_nPenWidth' : missing storage-class or type specifiers
SCRIBBLEView.cpp
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2146: syntax error : missing ';' before identifier 'm_nPenWidth'
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'UNIT' : missing storage-class or type specifiers
d:\vc++\编程\my\scribble\scribbledoc.h(62) : error C2501: 'm_nPenWidth' : missing storage-class or type specifiers
Generating Code...
Error executing cl.exe.
SCRIBBLE.exe - 9 error(s), 0 warning(s)
肯定是在什么位置少包含了什么文件,能提示一下吗