我在自己定义的类成员函数中写到:GetClientRect(theApp.m_pMainWnd,tect);
为什么会出现下列错误:
E:\byy\VC\scorll\Log.cpp(57) : error C2065: 'theApp' : undeclared identifiertheApp不是全局变量吗?
为什么会出现下列错误:
E:\byy\VC\scorll\Log.cpp(57) : error C2065: 'theApp' : undeclared identifiertheApp不是全局变量吗?
没有用extern声明theApp吧。
不如用AfxGetApp()->.....