Code:
void CClientDlg::OnButton01()
{
/* CClientDlg (ID: IDD_CLIENT_DIALOG)
(CPP: ClientDlg.cpp)
Button01 (ID: IDD_DIALOG1)
(CPP: Button01.cpp) */
/* CMyOtherDlg Dlg;
if(Dlg.DoModal() == IDOK)
{
//Handle whatever
} */
IDD_DIALOG1 Dlg;
if(Dlg.DoModal() == IDOK)
{
//Handle whatever
}
}
3 Errors, 0 Warnings...
C:\*\ClientDlg.cpp(179) : error C2146: syntax error : missing ';' before identifier 'Dlg'
C:\*\ClientDlg.cpp(179) : error C2065: 'Dlg' : undeclared identifier
C:\*\ClientDlg.cpp(180) : error C2228: left of '.DoModal' must have class/struct/union type