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)