What is the difference between CDialog and CDialogEx? I decided to use CDialog because I cannot assign m_pMainWnd to Dlg if Dlg is obtained from CDialogEx.
BOOL CPreparationApp::InitInstance()
{
MyClass2 Dlg;
m_pMainWnd = &Dlg;
Dlg.DoModal();
return TRUE;
}
What problems could I use if I did not use CDialogEx, for example, a form wizard?
How to assign m_pMainWnd variable obtained from CDialogEx?
source
share