
Help Getting a CDialog App to show Dialog when called from CreateProcess
I have a dialog app that is called from another app using CreateProcess.
Currently, everything works but the dialog from the dialog app is never
displayed to the user while the dialog app is running.
the program starts with:
CGetHTTPDlg dlg;
m_pMainWnd = &dlg;
dlg.mCommandLine = theApp.m_lpCmdLine;
int nResponse = dlg.DoModal();
then the CGetHTTPDlg::OnInitDialog performs some logic on mCommandLine and
calls different functions. Then the program ends.
I know that the reason the dialog does not display, is because once
OnInitDialog is done, the program end by calling EndDialog. The purpose of
the dialog app is to perform an automated task for the user, so I do not
want the user to interact with the dialog at all, but I still want to
display the dialog so the user can see the status and knows what is going
on.
Thanks,
Troy