关于CArray??
在使用CArray时,我在一个派生自CObject的类定义里写道:
class CFuncPara:public CObject
{
int m_nCategory;
protected:
CFuncPara();
DECLARE_SERIAL(CFuncPara)
///////////////////////下一行!!!!!!///////////////////////
public:
CArray<CPoint,CPoint> m_pointArray;//就是这一段!!!好象没问题呀(Line34)
////////////////////////////////////////////////////////////////////
void Serialize(CArchive &ar);
};
但在编译时,提示错误
d:\study\map1\mapdoc.h(34) : error C2143: syntax error : missing ';' before '<'
d:\study\map1\mapdoc.h(34) : error C2501: 'CArray' : missing storage-class or type specifiers
d:\study\map1\mapdoc.h(34) : error C2059: syntax error : '<'
d:\study\map1\mapdoc.h(34) : error C2238: unexpected token(s) preceding ';'
只要一删除上行,就毫无问题.
怎么回事????
难道我用Template有错????
请高手指正!!!
谢谢