应该有:#include "afxtempl.h"将定义修改称:CArray<CPoint,CPoint&> MyPoArray;

解决方案 »

  1.   

    只要在定义CArray<CPoint,CPoint> MyPoArray;
    的地方加上#include <afxtempl.h>就可以了
    CByteArray已经不是一个模板了,是一个普通的类声明在#include <afxcoll.h>中
      

  2.   

    在stdafx.h中在#include <afxcview.h>之后, 加入#include <afxtempl.h>就行.
      

  3.   

    谢谢三位大虾的解答!!!其实我早该给分easypaper的,但昨天网络有问题而未能给出分数,今天也给得很艰难(花了10几分钟).
    再次特别谢谢sun2000和w_black!!!