Calling DoModal twice in InitInstance fails
Posted on 2002-05-24
I think this ought to be an easy one, I'm just tired and rusty. In my InitInstance function of my application, I want to show one dialog box followed by another, ie
m_pMainWnd = &dlg1;
if( dlg1.DoModal() == IDOK )
m_pMainWnd = &dlg2;
However, dlg2 never opens (actually I followed it through the Debugger and it opens briefly then closes). [Yes, I *do* get into the _if_ block, don't worry]
What's the deal?? How do I fix this??
PS If you think it's worth more points, let me know...