vc一个类中调用另一个类的成员函数的
pDoc->m_pVctestView->DeleteAllItems();有错误
DeleteAllItems是View类中的一个成员函数,
在DOC中这样定义,CVctestView* m_pVctestView=NULL;
错误如下;
d:\我的文档\vctest\vctestdoc.h(21) : error C2143: syntax error : missing ';' before '*'
d:\我的文档\vctest\vctestdoc.h(21) : error C2501: 'CVctestView' : missing storage-class or type specifiers
d:\我的文档\vctest\vctestdoc.h(21) : error C2501: 'm_pVctestView' : missing storage-class or type specifiers
有明白的,帮忙解决一下
[解决办法]
应该是 CVctestView类里面某一段代码 少了;
建议楼主单独编译CVctestView类试试呢