Newsgroups : Borland : borland.public.delphi.rtl.win32 : 2007 Nov : Starting a console application
| Subject: | Starting a console application |
| Posted by: | "Jacob Havkrog" (a@a.a) |
| Date: | Tue, 27 Nov 2007 13:31:34 |
Hi
I'm starting up a (Delphi 2007 made) console application from a Delphi 2007
application.
What's the best way:
Currently I'm using
WinExec(PChar(MyPath + ' ' + MyParams), SW_SHOWNORMAL)
I'm aware of the pitfalls regarding the MyPath, my question is about
SW_SHOWNORMAL.
If I don't want the black DOS window to appear, can I safely use SW_HIDE
instead? Will the console application start up and do its thing without a
DOS window flashing on the screen?
It seems to be working ok...
Thanks
Jacob