comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@merv.cs.nyu.edu (Robert Dewar)
Subject: Re: Win32 File Handles and Ada
Date: 1998/05/31
Date: 1998-05-31T00:00:00+00:00	[thread overview]
Message-ID: <dewar.896629761@merv> (raw)
In-Reply-To: 3570933D.50780D04@roanoke.infi.net



Srini asks

<<I am looking for a way to map Win32 File handles - created by CreatePipe
for instance into Ada Text_Io.File_Type (or some other such construct
that is close).

Can anyone suggest a way for gnat (3.10p1)?
>>


GNAT contains EXACTLY the feature you need (assuming that Win32 file handles
are treated the same as C stream handles). See the GNAT documentation which
has a seection called Operations on C Streams. If this is not exactly what
you want, it should be trivial to modify the Ada.Text_IO.C_Streams package
to
do what you want.

It is a constant amazement to me that people do not make the effort to at
least breeze through the documentation to know what is there. 

I really encourage GNAT users, both those using the supported
commercial version, and those using the public version to take the
time to read the documentation, there is all sorts of interesting stuff
available there.

Robert Dewar
Ada Core Technologies





  reply	other threads:[~1998-05-31  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-30  0:00 Win32 File Handles and Ada Srinivasan, R
1998-05-31  0:00 ` Robert Dewar [this message]
1998-05-31  0:00 ` Jerry van Dijk
1998-06-03  0:00   ` Srinivasan, R
replies disabled

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