在CJITView下有个chart公有成员变量。
在属性页里(CProp派生自CPropertyPage)拖上去一个按钮。在这个按钮的单击事件里:
void CProp3::OnBnClickedButton1()
{
CFontDialog dlg;
if(dlg.DoModal()==IDOK)
{
CMainFrame *pMain=(CMainFrame*)AfxGetApp()->m_pMainWnd; 
CJITView* pView = (CJITView*)pMain->GetActiveView() ;
//我想访问在CJITView下有个chart公有成员变量,编译的时候报错:
 error C2143: syntax error : missing ';' before '*'
 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
 warning C4183: 'GetDocument': missing return type; assumed to be a member function returning 'int'我头文件也加了,
#include "MainFrm.h"
#include "JITView.h"是不是头文件加的要有顺序?怎么解决才能访问到View下的成员?谢谢!
}