I have two dialog boxes in my application. Buttion click on first dilaog will display the second dialog box.
void CBranchRegionDBDlg::OnBnClickedOk()
{
// TODO: Add your control notification handler code here
CLBRegionDlg dlg;
CDialog::ShowWindow(FALSE);
dlg.DoModal();
}
in the dialog box, there is buttion lcik function, assinging a string value to the edit box member varibale of type CString, after that I am calling UpdateData(false) to populate the data into the edit box.
void CLBRegionDlg::OnBnClickedOk()
{
m_szStatus = "hello world";
UpdateData(FALSE);
}
but UpdateData(FALSE) throwing an error
[b]Debug Assertion failed![/b]
Pointing to the following line in wincore.cpp
CHandleMap* pMap = afxMapHWND();
ASSERT(pMap != NULL); // error points here.
I need help in this. I am using Visual Studio 2008
Thanks in advcance.

Start a new topic
Add Reply




MultiQuote


| 


