comp.lang.ada
 help / color / mirror / Atom feed
From: "Steve" <nospam_steved94@comcast.net>
Subject: Re: GtkAda on WinXP
Date: Wed, 4 May 2005 19:05:27 -0700
Date: 2005-05-04T19:05:27-07:00	[thread overview]
Message-ID: <YL-dnYKfFpVR4-TfRVn-2w@comcast.com> (raw)
In-Reply-To: d5bt0c$8rj$1@news.ya.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1936 bytes --]

To get rid of the console window either feed gnat the argument:
  -largs -mwindows

Or add the line:

  pragma Linker_Options( "-mwindows" );

To your source code.

The same is true for GWindows, although it may already have the 
Linker_Options pragma in the sources.

Regarding tasking, learn about Ada tasking.  Once you get used to it, it's 
really nice.  It's different from the "fork()" model of unix, and closer to 
the tasking model I have seen in a lot other operating systems over the 
years (only simpler and portable).

Steve
(The Duck)

"Bart" <bart.polot@gmail.com> wrote in message 
news:d5bt0c$8rj$1@news.ya.com...
> Hello
>
> Im trying to learn GtkAda on Windows, i need it for a school proyect with
> graphic interface and it must be on Windows. I looked at the tutorial and
> hello world and I understad all very well, but I realized that its
> impossible to close the black window, "console" or whatever you wanna call
> it. It�s useful for text "put"s when debugging, but its really ugly when 
> the
> program is done. I�ve seen some screenshots of GtkAda programs on linux 
> and
> they don�t have the console window, but I can�t find any shot from a 
> Windows
> machine. Even downloaded binaries (LinXtris) run with this irritating
> windows.
> - Is there any way to call Gtk.Main.Main closing that console???
> I�ve searched in google but there is no help about GtkAda, only the
> "official" user guide
> - Am I a horrible searcher or is that the only help avalible?
> I saw some other libraries like GWindows or GNATWin.
> - Do they allow to make only-graphic programs?
>
> And maybe this may be kind of weird but, is it possible to do something 
> like
> C�s fork(); in ADA? I�ve thought that Gtk.Main could be ran from a "child
> process"... I�ve been working much more time with C than with ADA, so i
> still have ideas from C.
>
> Thanks for reading and a lot more for any answers.
>
> 





  reply	other threads:[~2005-05-05  2:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-05  1:33 GtkAda on WinXP Bart
2005-05-05  2:05 ` Steve [this message]
2005-05-05  7:29 ` Pascal Obry
2005-05-05 12:19 ` Alex R. Mosteo
2005-05-06 17:26 ` Björn Persson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox