> When I spawn a console application from a another
> application of mine using
[quoted text clipped - 4 lines]
> Is there any way I can keep the window open even after the
> program terminated (I want to be able check the output) ?
You can allocate the console before executing the app.
Just call "AllocConsole();".
After you checked the output you can call "FreeConsole();"
It works at least for CreateProcess (but should also work for spawn;
because it uses CreateProcess).

Signature
Greetings
Jochen
Do you need a memory-leak finder ?
http://www.codeproject.com/useritems/leakfinder.asp
Bumbrlik - 26 Aug 2003 15:10 GMT
Thank you, that works great !!!
>-----Original Message-----
>
[quoted text clipped - 14 lines]
>It works at least for CreateProcess (but should also work for spawn;
>because it uses CreateProcess).
Ravidas Shet - 30 Mar 2005 09:43 GMT
Hi Jochen,
i am using _Spawnl ()to open the Outlook's CreateMail Window. Neither it
gives any error nor it is opening.
_spawnl (_P_NOWAIT, strExplorerPath,"sales@saledomain.com", NULL);
here strExplorerPath is from the Registry Location.
ie "%ProgramFiles%\Outlook Express\msimn.exe" /mailurl:%1
Its Urgent,
Thanks in Advance,
Regards,