Hi,
I am a new user in Visual C++ 6.0.Using MFC, I created a single document application. From the application I wish to click a button to open a dialog box. The following is the code I used:
void CTest1Doc::OnButton1()
{
TestDlg testdlg;
int result = testdlg.DoModal():
}
It seems that it keeps looping and the dialog box IDC_TestDlg did not appear. Please advice.%-)
I am a new user in Visual C++ 6.0.Using MFC, I created a single document application. From the application I wish to click a button to open a dialog box. The following is the code I used:
void CTest1Doc::OnButton1()
{
TestDlg testdlg;
int result = testdlg.DoModal():
}
It seems that it keeps looping and the dialog box IDC_TestDlg did not appear. Please advice.%-)