Reagan: CreateProcess()?
okibi
okibi at ratedo.com
Wed Sep 26 04:49:54 PDT 2007
Apparently it wasn't setup... I glanced over it and thought I saw the CREATE_NO_WINDOW reference. Anyways, it's there now.
It's still creating the window while running the batch script.
okibi Wrote:
> I take that back, CREATE_NO_WINDOW fails (undefined identifier) and DETACHED_PROCESS works, but the window still opens.
>
> okibi Wrote:
>
> > Sorry, I'm not all too familiar with CreateProcess functions.
> >
> > From what I can tell, it's doing a CREATE_NEW_CONSOLE. Changing it to CREATE_NO_WINDOW or DETACHED_PROCESS doesn't work.
> >
> > Regan Heath Wrote:
> >
> > > okibi wrote:
> > > > Firstly, this only works on Windows, which is ok as system() doesn't open a terminal window on Linux.
> > > >
> > > > The problem is that I'm hitting a batch file. When I set the program to point to cmd.exe, it will cause a command prompt window to open to run the command, so back to square one.
> > >
> > > What creation flags is it using? CREATE_NO_WINDOW or DETACHED_PROCESS?
> > > http://msdn2.microsoft.com/en-us/library/ms684863.aspx
> > >
> > > Regan
> >
>
More information about the Digitalmars-d-learn
mailing list