Help Getting a CDialog App to show Dialog when called from CreateProcess 
Author Message
 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



Sun, 14 May 2000 03:00:00 GMT  
 Help Getting a CDialog App to show Dialog when called from CreateProcess

Check that the wShowWindow in the STARTUPINFO structure is correctly set.

Claire Sylvestre


Quote:
>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.



Sun, 14 May 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. OnIdle not getting called in dialog based app.

2. Help me in showing a dialog immediately when main dialog shows

3. getting stdout from a CreateProcess command call

4. Showing taskbar visible dialog from dialog based app

5. CreateProcess and Dialog Box Apps

6. CDialog: Service calling a MFC-linked DLL instanciating a modeless dialog box

7. Help porting WinExec call to CreateProcess or ShellExecute

8. ** external call (CreateProcess) ** HELP!

9. App fails when creating/showing Modeless Dialog

10. Calling Dialog after showing application

11. Underscores not showing up in a dialog app until Alt is pressed

12. Dialog is showed although App is iconified

 

 
Powered by phpBB® Forum Software