CDialog
-
Hi! I have a CDialog to validate the entrances into my application. But after pressing ok on my CDialog the application doesn´t "continue"... I have to enter the program again to continue...(on CWnd) What´s wrong...? Is it the CDialog?
:eek: I suppose your main window is not the dialog... Please show the code where you call the dialog.
-
:eek: I suppose your main window is not the dialog... Please show the code where you call the dialog.
-
i am creating and calling the cdialog in the CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) function and i am creating my CWnd in the int CClientView::OnCreate(LPCREATESTRUCT lpCreateStruct).
Try to remove the dialog invocation from the CMainFrame::OnCreate. Move it to the Application's InitInstance. If the user fails at entering the application, you can immediately exit it (will not create the main frame).
-
Try to remove the dialog invocation from the CMainFrame::OnCreate. Move it to the Application's InitInstance. If the user fails at entering the application, you can immediately exit it (will not create the main frame).