Running a CDialog in a separate Thread
Posted on 2001-08-12
My app is an SDI. I Have a class that serves as a Singleton and it contains a meethod that should start a thread and display a modeless CDialog derived class within that thread. The reason I do this is so that when the Dialog is displayed, the user can still do something else in the app.
Now, my major prob is that I am getting an ASSERT failure during the CDialog::Create(). I've posted the relevant pieces of code below:
// Create Progress Dialog and Display it
BOOL ret = m_configProgress.Create();
if(!ret) //Create failed.
AfxMessageBox("Error creating Processing Dialog");
The m_configProgress variable is a member of CFrameWnd class. Any help would be appreciated as I've been on tis for a while now!