我的目地是在这个对话框类中,算出一组数据,交给CView类去显示在
CMainFrame* pFrame = (CMainFrame*)(AfxGetApp()-> m_pMainWnd);
CMyView *pView = (CMyView*)(pFrame-> GetActiveView());
pView-> OnUpdate(this,0,NULL); 但是提示下面的错误error C2664: 'OnUpdate' : cannot convert parameter 1 from 'class CUDPDlg *const ' to 'class CView *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast怎么解决啊?
CMainFrame* pFrame = (CMainFrame*)(AfxGetApp()-> m_pMainWnd);
CMyView *pView = (CMyView*)(pFrame-> GetActiveView());
pView-> OnUpdate(this,0,NULL); 但是提示下面的错误error C2664: 'OnUpdate' : cannot convert parameter 1 from 'class CUDPDlg *const ' to 'class CView *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast怎么解决啊?
类型不匹配..
pView1-> OnUpdate(NULL, 0, NULL);
pView2-> OnUpdate(NULL, 0, NULL);
可是只有一个View的数据更新啊?而且无论跟踪哪个,都进入同一个OnUpdate
lHint 包含了与修改有关的信息。
pHint 指向保存了与修改有关的信息的对象。