Modal dialog boxes
Hi all,
i have a question concerning MFC.
I built a dialog box with the VC''s resource editor. The dialog box has a CComboBox and i''ve already filled the data in but when call the DoModal() function nothing appears in the combo box.
The worst thing is when i attempt to fill it(the combo box)dynamically, the program just crashes.
PLZ help!
Post some code if you can...much easier than trying to speculate on what is causing the problem.
Here are some codes
//...CRoomProp Dlg;//here we create a dialog box//cLanguage is a CComboBox control, member of CRoomProp.Dlg.cLanguage.AddString("English");//the program crashes hereDlg.cLanguage.AddString("French");if( IDCANCEL == Dlg.DoModal() )//...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement