初学vc,边看《深入浅出mfc》边练习。
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);
};为什么系统总是对CArray<CPoint,CPoint> m_pointArray;这一句编译出错。
求救啊。搞了几个钟头,还是不知道这一句出错在哪。看到光盘上带的源程序用的这一句却没什么错啊,为什么我刚写到这,就错了呢,连copy过来也不行。