请问如何获取view指针
在自定义的class中
(CDocument::GetNextView((((CMainFrame*)AfxGetApp()->m_pMainWnd)
->GetActiveDocument())->GetFirstViewPosition() )
->m_lpp).m_strL="mmm";
m_lpp是view成员变量,m_strL是m_lpp所属class的成员变量
编译如下
error C2664: 'GetNextView' : cannot convert parameter 1 from 'struct __POSITION *' to 'struct __POSITION *& '
A reference that is not to 'const' cannot be bound to a non-lvalue
error C2227: left of '->m_lpp' must point to class/struct/union
error C2228: left of '.m_strL' must have class/struct/union type
3 error(s), 0 warning(s)
请问怎么解决它们呢 谢谢了