C++ Programming
05-13-2013, 11:28 AM
Hi,
I create a derived Cdialog with following code
main_window->progdbg = new CprogDebug();
main_window is main windows I get the pointer to it via AfxGetMainWInd
CMainFrame* main_window = (CMainFrame *) AfxGetMainWnd();
CMainFrame is created on the heap
later on when I try to create the the window modeless dialog it never comes back to me the is that is the create
ret = progdbg->Create(IDD_PROGDBG,(CWnd *)this); if(ret == 0 ) error = GetLastError();
I create a derived Cdialog with following code
main_window->progdbg = new CprogDebug();
main_window is main windows I get the pointer to it via AfxGetMainWInd
CMainFrame* main_window = (CMainFrame *) AfxGetMainWnd();
CMainFrame is created on the heap
later on when I try to create the the window modeless dialog it never comes back to me the is that is the create
ret = progdbg->Create(IDD_PROGDBG,(CWnd *)this); if(ret == 0 ) error = GetLastError();