digitalmars.D.learn - Compiling Windows GUI-application
- Fab (19/19) Aug 27 2010 Hi
- Stanislav Blinov (11/35) Aug 27 2010 Well that's a pretty strange reason to me, but I must take it that you
- Andrej Mitrovic (4/27) Aug 27 2010 Try compiling with -L/SUBSYSTEM:WINDOWS:
- torhu (3/4) Aug 27 2010 -L/subsystem:windows:4 is better, maybe that's what you meant. Optlink
- Fab (14/14) Aug 27 2010 Thank you. I am using
- Mike James (5/19) Aug 28 2010 Have you checked out Lazarus/FreePascal?
Hi 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. 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 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.
Aug 27 2010
Fab wrote:HiWelcome!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.htmlPlease see yet another link: http://www.digitalmars.com/d/1.0/windows.html 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.
Aug 27 2010
Try compiling with -L/SUBSYSTEM:WINDOWS: There's more advice here (it's not a GtkD forum but it might help): http://www.dsource.org/forums/viewtopic.php?t=3993&highlight=console Fab Wrote:Hi 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. 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 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.
Aug 27 2010
On 28.08.2010 00:58, Andrej Mitrovic wrote:Try compiling with -L/SUBSYSTEM:WINDOWS:-L/subsystem:windows:4 is better, maybe that's what you meant. Optlink defaults to an older version, which means some widgets don't work properly.
Aug 27 2010
Thank you. I am using my mobile phone to answer so it's pretty hard. I will try your tips later. ps: i wanted to say that delphi is slow and it seems to be old. in addition the bindings for sdl, allegro and so on are bad and there are't any free delphi versions.
Aug 27 2010
"Fab" <fab.coding ymail.com> wrote in message news:i59i02$9b$1 digitalmars.com...Thank you. I am using my mobile phone to answer so it's pretty hard. I will try your tips later. ps: i wanted to say that delphi is slow and it seems to be old. in addition the bindings for sdl, allegro and so on are bad and there are't any free delphi versions.Have you checked out Lazarus/FreePascal? http://www.lazarus.freepascal.org/index.php?topic=8406.0 -=mike=-
Aug 28 2010