Windows 7 x64. Prevent appearing of console with GUI application
ANtlord
antlord92 at gmail.com
Tue Jul 24 16:53:47 UTC 2018
On Tuesday, 24 July 2018 at 09:20:22 UTC, Mike Parker wrote:
> On Tuesday, 24 July 2018 at 08:09:33 UTC, ANtlord wrote:
>
> Anyway, if you are using OPTLINK or the MS Linker, try a test
> program without gtkD to make sure it works standalone for you.
>
> ```
> import core.sys.windows.windows;
>
> void main() {
> MessageBoxA(null, "Look, Ma! No console!", "It works!",
> MB_OK);
> }
> ```
You partially are right, the issue is related to the application
internals but not to GTKD. I forgot that I launch the second
application inside. I recompiled both of the with
-L/SUBSYSTEM:windows -L/ENTRY:mainCRTStartup and that's it.
Thanks a lot everyone!
More information about the Digitalmars-d-learn
mailing list