用的是vc++的MFC,总是报错illegal use of this type as an expression
2012-12-30
求助:用的是vc++的MFC,总是报错illegal use of this type as an expressionvoid CMy09990171View::OnPolyi
求助:用的是vc++的MFC,总是报错illegal use of this type as an expression void CMy09990171View::OnPolyitem() { CPolyDlg polydlg; polydlg.DoModal(); x1=CPolyDlg.m_x1; y1=CPolyDlg.m_y1; Invalidate(); } CPolyDlg是对话框中关联的类。为什么总是报错 error C2275: 'CPolyDlg' : illegal use of this type as an expression [解决办法]