解決兩個對話框傳值程序中斷在ASSERT(::IsWindow(m_hWnd)); return InsertItem(LVIF_TEXT, nItem, lpszItem, 0, 0, 0, 0);

在MFC中建立一個對話框,添加ListControl控件,又在該對話框中建立了一個子對話框。當我將子對話框中的值傳到其父對話框的ListControl中時,程序運行時出錯,出錯的代碼行以下:css (CParentDlg* )(AfxGetApp()->m_pMainWnd)-> m_list.InsertItem(row_count,Namestr); 其中(CParentDlg* )(Afx
相關文章
相關標籤/搜索