M
Manjree Garg
Hi
I am trying to access a combobox of a dialogbox. The code is someting like
that:
void CDatabaseView::OnAddExpdata()
{
CExpDataDlg dlg;
CComboBox* pCmbBox = static_cast<CComboBox*>
(dlg.GetDlgItem(IDC_COMBOExpId));
}
where IDC_COMBOExpId is a combobox in the dialogbox dlg (CExpDataDlg).
The problem is that it is throwing following exception in CWND::GetDlgItem()
"There is no source code available for the current location."
Any suggestions will be appreciated.
Thanks
Manj.
I am trying to access a combobox of a dialogbox. The code is someting like
that:
void CDatabaseView::OnAddExpdata()
{
CExpDataDlg dlg;
CComboBox* pCmbBox = static_cast<CComboBox*>
(dlg.GetDlgItem(IDC_COMBOExpId));
}
where IDC_COMBOExpId is a combobox in the dialogbox dlg (CExpDataDlg).
The problem is that it is throwing following exception in CWND::GetDlgItem()
"There is no source code available for the current location."
Any suggestions will be appreciated.
Thanks
Manj.