www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - DWT Gui program without console

reply "user" <user test.com> writes:
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 

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

Thanks in advance.
Apr 27 2013
parent "Adam D. Ruppe" <destructionator gmail.com> writes:
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
Apr 27 2013