How to disable the DOS window at the start of my program on D

Rikki Cattermole alphaglosined at gmail.com
Wed Jul 24 01:08:17 PDT 2013


On Wednesday, 24 July 2013 at 07:00:35 UTC, MGW wrote:
> I work with Qt from D and I do not need the DOS window. How to 
> turn it off.

Generally speaking to disable the console window on Windows by 
using code only something along these lines will work.

version(Windows) {
     import core.sys.windows.windows : FreeConsole;
     FreeConsole();
}

There is a way to instruct the linker to remove it also but thats 
more fun.


More information about the Digitalmars-d-learn mailing list