| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 616 人关注过本帖
标题:关于collection类的声明
只看楼主 加入收藏
wandd
Rank: 1
等 级:新手上路
帖 子:29
专家分:0
注 册:2005-5-12
收藏
 问题点数:0 回复次数:0 
关于collection类的声明

class CStroke :public CObject
{
public:
CStroke(UINT nPenWidth);
protected:
CStroke();
DECLARE_SERIAL(CStroke);

// Attributes
protected:
UINT m_nPenWidth;
public:
CArray<CPoint,CPoint> m_pointArray;

//Operation
public:
BOOL DrawStroke(CDC* pDC);
public:
virtual void Serialize(CArchive& ar);
};
/////////////////////////////////////////////////////////////////////////////
错误信息
//////////////////////////////////////////////////////////////////////
--------------------Configuration: Scribble - Win32 Debug--------------------
Compiling...
Scribble.cpp
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2143: syntax error : missing ';' before '<'
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2501: 'CArray' : missing storage-class or type specifiers
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2059: syntax error : '<'
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2238: unexpected token(s) preceding ';'
ScribbleDoc.cpp
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2143: syntax error : missing ';' before '<'
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2501: 'CArray' : missing storage-class or type specifiers
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2059: syntax error : '<'
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2238: unexpected token(s) preceding ';'
ScribbleView.cpp
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2143: syntax error : missing ';' before '<'
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2501: 'CArray' : missing storage-class or type specifiers
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2059: syntax error : '<'
d:\mvs\myprojects\scribbe\scribble step1\scribbledoc.h(67) : error C2238: unexpected token(s) preceding ';'
Generating Code...
Error executing cl.exe.

Scribble.exe - 12 error(s), 0 warning(s)

搜索更多相关主题的帖子: 声明 collection 
2006-04-03 19:53
快速回复:关于collection类的声明
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.021272 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved