April 28, 2013
Hi, writing a GUI tool using DWT, looks like the windows console pops up everytime I run the tool. How can I prevent/supress the console?

I did some googling and found a tip that -version=gui helps, but its not working for me.

Thanks in advance.
user
April 28, 2013
This is a bit of a faq! There's two solutions, a def file or a command line argument to the linker.

The first two posts here describe the .def file:
http://forum.dlang.org/thread/xkvdpdsfzevanucrgkud@forum.dlang.org

And if you scroll down a bit to this post:
http://forum.dlang.org/thread/xkvdpdsfzevanucrgkud@forum.dlang.org#post-mailman.2578.1355147894.5162.digitalmars-d-learn:40puremagic.com

you'll see the quickest solution:

dmd.exe -L/SUBSYSTEM:WINDOWS dwt_app.d