On Tue, 17 Aug 2010 16:40:02 -0500, John Connors <johnconn...@mailinator.com> wrote:

[snip]
It works but a console (from my program) apears while someprogram.exe is
running. I've read that some optlink switches are needed to make the console disapear.

Try using WinMain instead of main:


---
import core.runtime;

import std.c.windows.windows,
       std.process;


extern(Windows)
int WinMain( HINSTANCE, HINSTANCE, LPSTR, int )
{
    return system( r"bin\someprogram.exe" );
}
---


--
Yao G.

Reply via email to