ClientDoc.hclass CClientDoc : public CDocument{
......
........
public:
int  m_nCurType;
int GetSelectedType(){ return m_nCurType; };
...
}
###############################
ClientDoc.cppbool ClientDoc::GetXlsInfo(........){
....
int Type;
Type = GetSelectedType(); 
...
.....
}
###############################
Screen.cpp...
.....
#include "ClientDoc.h"void Screen::Dw(CRect rc, ..... )
{
....
int Type;
Type = CClientDoc::GetSelectedType(); //在这里调用就出错了
....
}
###############################error C2275: 'CClientDoc' : illegal use of this type as an expression
      e:client\clientdoc.h(92) : see declaration of 'CSPCClientDoc'请问Screen.cpp里调用怎么出错呢。
正在做东西,比较急。
谢谢!