我把这个东西加到我的CDocument的派生类里面怎么会出错呀?我已经把CLine的头“Line.h”加到派生类里了,还是不行。错误如下:
e:\sun\draw\drawdoc.h(18) : error C2143: syntax error : missing ';' before '<'
e:\sun\draw\drawdoc.h(18) : error C2501: 'CTypedPtrArray' : missing storage-class or type specifiers
e:\sun\draw\drawdoc.h(18) : error C2059: syntax error : '<'
e:\sun\draw\drawdoc.h(18) : error C2238: unexpected token(s) preceding ';'
DrawDoc.cpp
e:\sun\draw\drawdoc.h(18) : error C2143: syntax error : missing ';' before '<'
e:\sun\draw\drawdoc.h(18) : error C2501: 'CTypedPtrArray' : missing storage-class or type specifiers
e:\sun\draw\drawdoc.h(18) : error C2059: syntax error : '<'
e:\sun\draw\drawdoc.h(18) : error C2238: unexpected token(s) preceding ';'
DrawView.cpp
e:\sun\draw\drawdoc.h(18) : error C2143: syntax error : missing ';' before '<'
e:\sun\draw\drawdoc.h(18) : error C2501: 'CTypedPtrArray' : missing storage-class or type specifiers
e:\sun\draw\drawdoc.h(18) : error C2059: syntax error : '<'
e:\sun\draw\drawdoc.h(18) : error C2238: unexpected token(s) preceding ';'
Generating Code...
Error executing cl.exe.Draw.exe - 12 error(s), 0 warning(s)
e:\sun\draw\drawdoc.h(18) : error C2143: syntax error : missing ';' before '<'
e:\sun\draw\drawdoc.h(18) : error C2501: 'CTypedPtrArray' : missing storage-class or type specifiers
e:\sun\draw\drawdoc.h(18) : error C2059: syntax error : '<'
e:\sun\draw\drawdoc.h(18) : error C2238: unexpected token(s) preceding ';'
DrawDoc.cpp
e:\sun\draw\drawdoc.h(18) : error C2143: syntax error : missing ';' before '<'
e:\sun\draw\drawdoc.h(18) : error C2501: 'CTypedPtrArray' : missing storage-class or type specifiers
e:\sun\draw\drawdoc.h(18) : error C2059: syntax error : '<'
e:\sun\draw\drawdoc.h(18) : error C2238: unexpected token(s) preceding ';'
DrawView.cpp
e:\sun\draw\drawdoc.h(18) : error C2143: syntax error : missing ';' before '<'
e:\sun\draw\drawdoc.h(18) : error C2501: 'CTypedPtrArray' : missing storage-class or type specifiers
e:\sun\draw\drawdoc.h(18) : error C2059: syntax error : '<'
e:\sun\draw\drawdoc.h(18) : error C2238: unexpected token(s) preceding ';'
Generating Code...
Error executing cl.exe.Draw.exe - 12 error(s), 0 warning(s)
解决方案 »
- 怎么通过宏设置能实现unicode/release debug的调试与发行?
- 怎么把CString 转换为unsinged char 类型呀??
- 如何给VC的插件的TOOLBAR上添加图片?
- 如何让一个类可以接受消息
- 找兼职的同志请进
- sdk中的例程如何调试?
- 请问:关于菜单的问题。
- 如何控制CPrevieView的刷新?
- 设计一个学生管理对话框应用程序,请教高手帮忙!
- ListControl控件使用DeleteAllItems方法后再InsertItem不显示数据
- 如何比较两个RGB的值是否相等????
- GGJJ帮忙啊!我买了《Windows API 常用技巧汇编》,我把配套光盘丢了:(,help!
你在stdafx.h中添加下面的文件include即可
#include <afxtempl.h>