菜鸟问题:CArray怎么使用?
我是刚学MFC的,
我在****doc.h中有定义了下面一个类:可是编译时总是有这样的错:
在CArray<CPoint,CPoint> m_pointArray; 这一行
有error C2143: syntax error : missing ';' before '<'的错
class CStroke : public CObject
{
public:
CStroke(UINT nPenWidth);
protected:
CStroke();
DECLARE_SERIAL(CStroke)
protected:
UINT m_nPenWidth;
public:
CArray<CPoint,CPoint> m_pointArray;
public:
BOOL DrawStroke(CDC* pDC);
public:
virtual void Serialize(CArchive& ar);
};