المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : To ask the user information via keyboard



C++ Programming
10-13-2011, 12:02 PM
Hello

I want to ask information via keyboard the user. I did a dialog with edit control, this dialog let me to ask the name of the file when the user will kept information.

I made this, but not run

Code:
void CDlgResultados::OnBnClickedButton1(){ CDlgSaveLoad dlgSL1; if(dlgSL1.DoModal()==IDOK) { dlgSL1.GetDlgItemText(IDC_EDIT1, nombre); } SaveToFile();}
App is in mfc.
The error appear in dlgSL1.GetDlgItemText(IDC_EDIT1, nombre);