Compiling Windows GUI-application
Stanislav Blinov
stanislav.blinov at gmail.com
Fri Aug 27 15:52:47 PDT 2010
Fab wrote:
> Hi
Welcome!
> I'm new in D but I used coding Delphi. I decided using D as my main
> programming language because I've dumped Delphi as a consequence of its
> awkwardness.
Well that's a pretty strange reason to me, but I must take it that you
just don't want or can't express it in any other way ;)
> Now I'm using D with Tango on the MS Windows plattform. So I
> don't want to miss GUIs and I decided to use GtkD.
> Actually I'm happy because I haven't got any problems creating simple
> applications with that library.
> But ... when I execute my application I can see my GUI and additionally an
> empty commandline (the "windows terminal").
> I compile my code with dsss and the dmd compiler. I've googled and found this
> two links:
>
> http://www.digitalmars.com/ctg/ctgDefFiles.html
> http://www.digitalmars.com/ctg/win32programming.html
>
Please see yet another link: http://www.digitalmars.com/d/1.0/windows.html
What you mostly need is under "Windows Executables", #3 (Module
definition file). You need to create the file with .def extension having
the two lines provided on that page. Then you can include that file into
compiler command line. After that, console should disappear.
I'm not sure the other parts on that page are relevant as I don't know
how gtkD works.
> But I cannot make head or tail of it.
> I would be very happy if you showed me how to get rid of that commandline.
> I hope you can understand my bad english.
>
> Greetings
> Fab
>
> PS: I'm lloking foward to your answers.
More information about the Digitalmars-d-learn
mailing list