How to disable the DOS window at the start of my program on D
Rikki Cattermole
alphaglosined at gmail.com
Wed Jul 24 01:24:02 PDT 2013
On Wednesday, 24 July 2013 at 08:16:39 UTC, MGW wrote:
> On Wednesday, 24 July 2013 at 08:08:19 UTC, Rikki Cattermole
> wrote:
>> version(Windows) {
>> import core.sys.windows.windows : FreeConsole;
>> FreeConsole();
>> }
>
> DOS window flashes at the start, and that's bad.
Take a look at DLL def files. I believe from memory that they
will help with that.
For Microsofts linker (64bit) take a look at
http://msdn.microsoft.com/en-us/library/vstudio/fcc1zstk.aspx and
/SUBSYSTEM:Windows.
For an example .def file (thats has been made for a dll but
should work ok) look at http://dlang.org/dll.html at mydll.def.
The later should work for both 64bit and 32bit I believe.
More information about the Digitalmars-d-learn
mailing list