comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: Command Line on windows
Date: Fri, 12 Sep 2008 08:27:54 -0700 (PDT)
Date: 2008-09-12T08:27:54-07:00	[thread overview]
Message-ID: <59bfa027-9360-4e60-a46a-346c1acb36f9@a8g2000prf.googlegroups.com> (raw)
In-Reply-To: 3Lvyk.339291$yE1.317044@attbi_s21

On Sep 12, 8:18 am, "Jeffrey R. Carter"
<spam.jrcarter....@spam.acm.org> wrote:
> RasikaSriniva...@gmail.com wrote:
>
> > but it appears the wildcard is always "expanded to the list of file
> > names". for example, i create test_cli.adb with the following :
>
> This appears to be a "feature" of GNAT, apparently to make programs behave the
> same on Windows as on Linux, where wildcards are expanded by the shell.

You can get around this by calling GetCommandLine yourself; this will
get Windows to give you the original command line, unprocessed by
GNAT.  See

http://msdn.microsoft.com/en-us/library/ms683156(VS.85).aspx

But you'll have to deal with the null terminator yourself
(Interfaces.C.Strings should help here) and parse the arguments
yourself.

                               -- Adam






      reply	other threads:[~2008-09-12 15:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-12 12:05 Command Line on windows RasikaSrinivasan
2008-09-12 12:25 ` Gautier
2008-09-12 14:36   ` RasikaSrinivasan
2008-09-12 14:59     ` Gautier
2008-09-12 15:54       ` Jean-Pierre Rosen
2008-09-12 16:31         ` Keith Thompson
2008-09-12 17:00         ` Pascal Obry
2008-09-12 15:18 ` Jeffrey R. Carter
2008-09-12 15:27   ` Adam Beneschan [this message]
replies disabled

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