Program Crashes when re-opening a dialog box.
Posted on 1999-01-18
With my dialog box based prog, I have a dialog box tied to a button in another dialog box. In other words, when I click the button, a new dialog box comes up. My problem is this: When I try to re-open the same dialog box I just closed, I get an assert error that stems from wincore.cpp, line 628.
ASSERT(pWnd->m_hWnd == NULL); // only do once
Why can't I reopen the dialog box I just closed?