请问:为什么CArray老出错?
class CStroke :public CObject
{
public:
CStroke(UINT nPenWidth);
protected:
CStroke();
DECLARE_SERIAL(CStroke)
public:
UINT m_nPenWidth;
public:
CArray<CPoint,CPoint> m_pointArray;
public:
BOOL DrawStroke(CDC* pDC);
public:
virtual void Serialize(CArchive& ar);
};
调试中 CArray<CPoint,CPoint> m_pointArray;这一行总出现如下错误
d:\scribble\scribbledoc.h(22) : error C2143: syntax error : missing ';' before '<'
d:\scribble\scribbledoc.h(22) : error C2501: 'CArray' : missing storage-class or type specifiers
d:\scribble\scribbledoc.h(22) : error C2059: syntax error : '<'
d:\scribble\scribbledoc.h(22) : error C2238: unexpected token(s) preceding ';'
另 我在CArray 上点击 go to defination of CArray 却出现 "the symbol of 'CArray' is undefined"
请问用CArray之前还要写些什么东西吗?
还有到那里能够查到其错误类型error C2143