要用pRightView=new CRightView();来为指针分配内存

解决方案 »

  1.   

    pRightView赋值了没有?
    指向的对象是你的那个view吗?你自己看看
      

  2.   

    先谢谢,还差点一会给分!
    我是这样写的 
        CRightView* pRightView = new CRightView();
        pRightView->Test();
    错误提示:不能存取E:\gl\VC\EySystem\MainFrm.cpp(179) : error C2248: 'CRightView::~CRightView' : cannot access protected member declared in class 'CRightView'
    哈构造函数也没有Pulic类型吧!
      

  3.   

    先谢谢,还差点一会给分!
    我是这样写的 
        CRightView* pRightView = new CRightView();
        pRightView->Test();
    错误提示:不能存取E:\gl\VC\EySystem\MainFrm.cpp(179) : error C2248: 'CRightView::~CRightView' : cannot access protected member declared in class 'CRightView'
    哈构造函数也没有Pulic类型吧!