Thread overview | |||||
---|---|---|---|---|---|
|
November 09, 2019 How to use "*.def" files in order to avoid cmd windows ? | ||||
---|---|---|---|---|
| ||||
Hi all, I am just playing with some win api code in D. Well, so far so good. I've create a simple program which shows a message box. I know i can avoid the cmd window with "dmd -L/SUBSYSTEM:windows". But this https://wiki.dlang.org/D_for_Win32 says that a "*.def" file with these two lines "EXETYPE NT SUBSYSTEM WINDOWS " can avoid the cmd window. I tried but no lick. I 'named the the def file "simple.def", since my programs name is also "simple". But no luck. Any help ? |
November 10, 2019 Re: How to use "*.def" files in order to avoid cmd windows ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vinod K Chandran | On Saturday, 9 November 2019 at 23:59:20 UTC, Vinod K Chandran wrote:
> I 'named the the def file "simple.def", since my programs name is also "simple". But no luck. Any help ?
you need to pass the .def file on the dmd command line with the rest of your stuff
|
November 10, 2019 Re: How to use "*.def" files in order to avoid cmd windows ? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Adam D. Ruppe | On Sunday, 10 November 2019 at 00:00:55 UTC, Adam D. Ruppe wrote:
> On Saturday, 9 November 2019 at 23:59:20 UTC, Vinod K Chandran wrote:
>> I 'named the the def file "simple.def", since my programs name is also "simple". But no luck. Any help ?
>
>
> you need to pass the .def file on the dmd command line with the rest of your stuff
Thanks :) It worked.
|
Copyright © 1999-2021 by the D Language Foundation