I am working on a Windows application, and I have a Settings Dialog box with 5 text fields. I currently get the values of each text field with: GetDlgItemText(hDlg, IDC_EDIT_SIPADDRESS, sipAccount->sipAddress, 80); GetDlgItemText(hDlg, IDC_EDIT_USERNAME, sipAccount->userName, 80); GetDlgItemText(hDlg, IDC_EDIT_PASSWORD, sipAccount->password, 80); GetDlgItemText(hDlg, IDC_EDIT_HOST, sipAccount->host, 80); GetDlgItemText(hDlg, IDC_EDIT_STUN, stun, 80); And then set the appropriate Registry keys to save the values. But how do I check if a new value has been put into the text box? (e.g. I want to ensure that it is not trying to set a blank value) if(!text_box_is_empty) GetDlgItemText(...); else //do nothing - Registry Key will be …

Member Avatar
+0 forum 0

I am running a program created using [B][B]Visual C++ 2010 [U][U]Express[/U][/U][/B][/B]. I have several dialog boxes to read input data. One works perfectly, but a second one simply does not read any data at all, and I cannot figure out why. The two dialogs are defined as [CODE] LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG5 DIALOG 0, 0, 275, 95 STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION | WS_VISIBLE | WS_POPUP | WS_SYSMENU CAPTION "Enter Start and End Date" FONT 8, "Ms Shell Dlg" { DEFPUSHBUTTON "OK", IDOK, 218, 9, 50, 14 PUSHBUTTON "Cancel", IDCANCEL, 218, 30, …

Member Avatar
+0 forum 0

The End.