DerelictLibui icon indicating copy to clipboard operation
DerelictLibui copied to clipboard

how to disable dos console?

Open huangyy opened this issue 8 years ago • 5 comments

when i run a app, it will show a dos console. how do not show dos console ?

huangyy avatar Mar 09 '17 09:03 huangyy

I think you must link with a manifest file

ghost avatar Mar 09 '17 09:03 ghost

I use dub to build. how to config ? I use cmd : dub build --build=release --arch=x86 --compiler=ldc2

huangyy avatar Mar 10 '17 06:03 huangyy

Try to pass this to the linker : /SUBSYSTEM:WINDOWS. I'm not sure of the syntax. Ping @p0nce, (sorry but according to https://github.com/ldc-developers/ldc/issues/1298#issuecomment-184811168 I think you might be able to give a hand here).

ghost avatar Mar 10 '17 07:03 ghost

use dmd, pass follow to linker. it work. EXETYPE NT SUBSYSTEM WINDOWS 4.0

huangyy avatar Mar 10 '17 08:03 huangyy

I use a .def file with the contents that @huangyy said

p0nce avatar Mar 10 '17 13:03 p0nce