
I am having problems setting up that a specified dialog is displayed before any others
I have put the necessary code to display a dialog in the derived
CWinApp::InitInstance method so that it is the first dialog that appears but
I am getting errors: for this code
CMessageDlg dlgMessage(this);
dlgMessage.DoModal();
when I have a "this" in the bracket I get this error:
cannot convert parameter 1 from 'class CAmviaExamApp *const ' to 'class CWnd
*'
when I leave out the "this" I get this error:
error C2228: left of '.DoModal' must have class/struct/union type
what can I do