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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00 autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,66ec75b1f5dfb5fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-11 05:26:44 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!nntp-relay.ihug.net!ihug.co.nz!news.stealth.net!news.stealth.net!207.69.128.245.MISMATCH!beamish.news.atl.earthlink.net!news.atl.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: How do I get rid of DOS window for Ada95 windoze programs... Date: Wed, 11 Dec 2002 08:13:07 -0500 Organization: MindSpring Enterprises Message-ID: References: NNTP-Posting-Host: d1.56.b0.ab X-Server-Date: 11 Dec 2002 13:13:38 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Xref: archiver1.google.com comp.lang.ada:31681 Date: 2002-12-11T13:13:38+00:00 List-Id: Try putting this in the declarative region of your main program: pragma Linker_Options ("-mwindows") ; You can do something similar from the command line. There should be a section of the Gnat User's Guide (or other documentation that came with it - don't have it in front of me to check) that talks specifically about building apps and dlls for Windows. Also, you can find lots of other interesting pragmas along the way, so it will pay you to spend a little time traipsing through it. MDC ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jast.mil/ Send Replies To: m c o n d i c @ a c m . o r g "I'd trade it all for just a little more" -- Charles Montgomery Burns, [4F10] ====================================================================== Eric wrote in message news:bRvJ9.118830$%k2.30570211@twister.socal.rr.com... > I'm not exactly a strong windows programmer (just starting, > actually) and was wondering how I get rid of the d!@# dosshell > window when executing a Windows targeted program... > > Every time I execute a windows program that I've compiled the > friggin' DOS window comes up and stays. If I close it, the entire > program terminates. > > I'm using the included example programs for WinNT programming that > came with the Windows support load for GNAT 3.15p NT executable. > > For GP: > WinXP 2002 SP1 > GNAT 3.15p w/Win support > AdaGIDE 7.00.1 > > ~Eric