“CArray m_nPenArray;”为什么会出错?
用MFC AppWizard创建了一个程序(使用缺省步骤,未选ActionX Control选项)。
在Doc文档中添加了定义:
CArray<CPoint,CPoint> m_nPenArray;
没有添加其它。在编译时却提示出错:
error C2143: syntax error : missing ';' before '<'
error C2501: 'CArray' : missing storage-class or type specifiers
error C2059: syntax error : '<'
error C2238: unexpected token(s) preceding ';'
请问这是什么原因?