Simple dialog based app not working
void When I run the app the message box is empty. Any ideas what I'm doing wrong? Thanks for the help,
{
UpdateData( TRUE );
AfxMessageBox( m_strMessText );
//OnOK();
}
Brian
void When I run the app the message box is empty. Any ideas what I'm doing wrong? Thanks for the help,
{
UpdateData( TRUE );
AfxMessageBox( m_strMessText );
//OnOK();
}
Brian
Hi,
Something is wrong with how you do data exchange with the control. Check that you have DDX_Text in DoDataExchange().
Thanks,
Nikola
VC++
Thanks Nikola,
It works now. The following was missing: All I did was add a member variable for the edit control like I do in Studio 6. Why didn't it add it for me? Thanks again,
//{{AFX_DATA_MAP(CHelloDialogDlg)
DDX_Text(pDX, IDC_EDIT1, m_strHelloText);
//}}AFX_DATA_MAP
Brian
Thanks,
Nikola
VC++