在Doc下定义CTypedPtrList<CObList,MyShape*> m_strokeList;
总是报错,还请指点:
f:\vcproject\picture\picturedoc.h(22) : error C2143: syntax error : missing ';' before '<'
f:\vcproject\picture\picturedoc.h(22) : error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
f:\vcproject\picture\picturedoc.h(22) : error C2059: syntax error : '<'
f:\vcproject\picture\picturedoc.h(22) : error C2238: unexpected token(s) preceding ';'
PictureDoc.cpp
f:\vcproject\picture\picturedoc.h(22) : error C2143: syntax error : missing ';' before '<'
f:\vcproject\picture\picturedoc.h(22) : error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
f:\vcproject\picture\picturedoc.h(22) : error C2059: syntax error : '<'
f:\vcproject\picture\picturedoc.h(22) : error C2238: unexpected token(s) preceding ';'
PictureView.cpp
f:\vcproject\picture\picturedoc.h(22) : error C2143: syntax error : missing ';' before '<'
f:\vcproject\picture\picturedoc.h(22) : error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
f:\vcproject\picture\picturedoc.h(22) : error C2059: syntax error : '<'
f:\vcproject\picture\picturedoc.h(22) : error C2238: unexpected token(s) preceding ';'
Generating Code...
Error executing cl.exe.
总是报错,还请指点:
f:\vcproject\picture\picturedoc.h(22) : error C2143: syntax error : missing ';' before '<'
f:\vcproject\picture\picturedoc.h(22) : error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
f:\vcproject\picture\picturedoc.h(22) : error C2059: syntax error : '<'
f:\vcproject\picture\picturedoc.h(22) : error C2238: unexpected token(s) preceding ';'
PictureDoc.cpp
f:\vcproject\picture\picturedoc.h(22) : error C2143: syntax error : missing ';' before '<'
f:\vcproject\picture\picturedoc.h(22) : error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
f:\vcproject\picture\picturedoc.h(22) : error C2059: syntax error : '<'
f:\vcproject\picture\picturedoc.h(22) : error C2238: unexpected token(s) preceding ';'
PictureView.cpp
f:\vcproject\picture\picturedoc.h(22) : error C2143: syntax error : missing ';' before '<'
f:\vcproject\picture\picturedoc.h(22) : error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
f:\vcproject\picture\picturedoc.h(22) : error C2059: syntax error : '<'
f:\vcproject\picture\picturedoc.h(22) : error C2238: unexpected token(s) preceding ';'
Generating Code...
Error executing cl.exe.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货