CDialog *dlg; dlg->DoModal();
// Allocate CDialog object on the heap. // Object must be destroyed when no longer needed. CDialog *pDlg = new CDialog; pDlg->DoModal(); delete pDlg; // Allocate CDialog object on the stack. // Object is destroyed when going out of scope. CDialog dlg; dlg.DoModal();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)