I have created a Dialog Application with a main menu bar
The menu bar has an option that opens a new Dialog (new Class)which contians serveral controls, in particular a CIPAdressCtrl.
I cannot pass data to the CIPAdressCtrl using DDX, as I can only map a variable as a control.
I want to pass information to the control, then show the dialog.
This is the code I am using, which is contained in the main Dialog application class.
Code:
void CNetworkAccessDlg::OnMenuChangeip()
{
CIPSettings dlg;
dlg.m_ipAddress.SetWindowText("0.0.0.0");
dlg.DoModal();
}
However, when executing and selecting the menu option to show the dialog I get a Debug Asserion Error.
Why is this and what do I do to avoid this?
Thanks
Magic