♣
一个奇怪的问题,大侠请进
在看孙鑫的vc++20集,在第7集里做一个画图的程序,跟着做下来却出了问题,一个类的定义如下:
class cpantodrwdoc : public cdocument //在这里有错误,提示:
// f:\myproject\pantodrw\pantodrw\pantodrwdoc.h(29) : error c2236: unexpected class cpantodrwdoc
{
protected:
//建立存储直线的数组
ctypedptrarray<cobarray, cline*> s_linearray;
public:
void addline(point beginp, point endp);//存储直线数据
cline *getline(int index);//获得指定被存储直线的数据
int getnumlines();//获得已经绘制直线的总数量
protected: // create from serialization only
cpantodrwdoc();
declare_dyncreate(cpantodrwdoc)
// attributes
public:
// operations
public:
// overrides
// classwizard generated virtual function overrides
//{{afx_virtual(cpantodrwdoc)
public:
virtual bool onnewdocument();
virtual void serialize(carchive& ar);
//}}afx_virtual
// implementation
public:
virtual ~cpantodrwdoc();
#ifdef _debug
virtual void assertvalid() const;
virtual void dump(cdumpcontext& dc) const;
#endif
protected:
// generated message map functions
protected:
//{{afx_msg(cpantodrwdoc)
// note - the classwizard will add and remove member functions here.
// do not edit what you see in these blocks of generated code !
//}}afx_msg
declare_message_map()
};
请大侠帮忙看看,在线等,也可以加我qq532138820,多谢!!!!
· 网友精彩回答:
头文件include了没有,
#include "stdafx.h"
class cpantodrwdoc : public cdocument //在这里有错误,提示:
--你最好将这行前的内容也都贴出来。
上句加;
.- 更多问题:
- · 转贴-局长被罚!
- · 哎, 又是女人的心思, 怎么猜 --------(续)
- · select控件的当前选定项的文本属性(Text)是哪个属性啊?好像select控件只有value属性,没有Text属性
- · 关于如何不用重启电脑来修改WIN2000或是XP的网关或DNS的问题!!急啊
- · 刚毕业的本科生,做Delphi程序员,待遇是怎么样的?
- · 在32位操作系统中,一个int型变量一定是4个Byte吗?
- · 我应该选择哪家企业?
- · VC控件位置大小调整2?
- · 发现园子里的人的特点:文笔不错。有点看破红尘。
- · PB里面如何打印窗体内容??
- · 在Windows CE中开发MP3
- · 怎么样用JAVASCRIPT来屏蔽IE的前进 后退 右键等功能?
- · XLGrid如果单元格有边框,当插入列或行的时候发生错误,单元格边框错位
- · 如何在ASP中将ACCESS导出成EXCEL文件?多谢
- · 类之间不能互相调用问题
- · 大家帮我看看一个操作符重载的问题

