本人看候俊杰的书时,感觉受益非浅,在按照其书上Scribble的例子中Step1做时
当我声明CArray<CPoint,CPoint> m_pointArray
和 CTypedPtrList<CObList,CStroke*> m_strokeList;
后,经编译之后,出现如下错误提示:ks\scrible\scribledoc.h(25) : error C2143: syntax error : missing ';' before '<'
scribledoc.h(25) : error C2501: 'CArray' : missing storage-class or type specifiers
scribledoc.h(25) : error C2059: syntax error : '<'
scribledoc.h(25) : error C2238: unexpected token(s) preceding ';'
scribledoc.h(45) : error C2143: syntax error : missing ';' before '<'
scribledoc.h(45) : error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
scribledoc.h(45) : error C2059: syntax error : '<'
scribledoc.h(45) : error C2238: unexpected token(s) preceding ';'请问是什么回事?我写的和书上的,还有msdn上的完全相同的
用的是VC++ 6.0
谁能解决这个问题?马上给分,UP也有分!
当我声明CArray<CPoint,CPoint> m_pointArray
和 CTypedPtrList<CObList,CStroke*> m_strokeList;
后,经编译之后,出现如下错误提示:ks\scrible\scribledoc.h(25) : error C2143: syntax error : missing ';' before '<'
scribledoc.h(25) : error C2501: 'CArray' : missing storage-class or type specifiers
scribledoc.h(25) : error C2059: syntax error : '<'
scribledoc.h(25) : error C2238: unexpected token(s) preceding ';'
scribledoc.h(45) : error C2143: syntax error : missing ';' before '<'
scribledoc.h(45) : error C2501: 'CTypedPtrList' : missing storage-class or type specifiers
scribledoc.h(45) : error C2059: syntax error : '<'
scribledoc.h(45) : error C2238: unexpected token(s) preceding ';'请问是什么回事?我写的和书上的,还有msdn上的完全相同的
用的是VC++ 6.0
谁能解决这个问题?马上给分,UP也有分!
解决方案 »
- 求一段IOCP的框架代码?
- 使用VC6.0的MSCOMM 中的CREATE函数关联一个MSCOMM控件,如何解除呢?
- 哪位大哥大姐帮我翻译一下这段代码的意思啊1
- 最近想学vc,我希望循序渐进,在这个过程,我该看些什么图书呢?
- 谁有9X下进入RING0 来HOOK API的源码?[急求中]up有分!!
- 请问当点击弹出式菜单的时候,会发出什么Message?
- www.microsoft.com网站太复杂了,哪里有技术文章?
- 用不同颜色和属性的线画的曲线怎么一刷新就全变为系统默认的黑线?
- 只有这么多分了,再问一个问题:对话框中的菜单快捷键怎么不工作?
- 我记得ATL有几个BUG
- 是系统漏洞所致吗?
- find()库函数的问题
在看看有没有头文件包含错误。