From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,e1489c24f38e1361 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder.news-service.com!news.nobody.at!texta.sil.at!newsfeed01.chello.at!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: GtkAda and CommandWindow on Windows system Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-13" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4d50269c$0$8932$703f8584@textnews.kpn.nl> Date: Mon, 7 Feb 2011 18:17:55 +0100 Message-ID: <3y01lulj9gjv.1pfxrwnvxpmwd.dlg@40tude.net> NNTP-Posting-Date: 07 Feb 2011 18:17:54 CET NNTP-Posting-Host: 95935e00.newsspool1.arcor-online.net X-Trace: DXC=>^f=K;]]jaR=6WC>Z>[ X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:17910 Date: 2011-02-07T18:17:54+01:00 List-Id: On Mon, 7 Feb 2011 18:06:32 +0100, ldries46 wrote: > When I am running a Ada Program which uses GtkAda. I get at least two windows: > 1.. The Window of the program created by GtkAda and > 2.. The Command Window or �MS-DOS�window > At least I want to close both windows at the same time but if possible do not create the MS Dos window. How can I do that? > As IDE I do use GPS. This is not specific to GtkAda, just general Windows issue. The application should be flagged as a GUI one. To do this in your GNAT project file (*.gpr) you should have: package Linker is for Default_Switches ("ada") use & "-mwindows"; end Linker; If you rather are using gnatmake do not forget to add to -largs : -mwindows -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de