comp.lang.ada
 help / color / mirror / Atom feed
From: Alfred Hilscher <Alfred.Hilscher@icn.siemens.de>
Subject: Re: Access and alias
Date: 2000/04/05
Date: 2000-04-05T00:00:00+00:00	[thread overview]
Message-ID: <38EB55AE.D4A241FD@icn.siemens.de> (raw)
In-Reply-To: 86aej9aa8y.fsf@ppp-169-201.villette.club-internet.fr



Laurent Guerby wrote:
> 
> "NANCY HEHIR" <nanceh.ennis@tinet.ie> writes:
> 
> > I am trying to use SetCommState to configure a Comm Port.
> > I have created a handle for COM1 using CreateFile.
> > SetCommState takes as it's parameters the handle and a type LPDCB (access to
> > the DCB)
> > The type LPDCB is defined in Win32-winbase.ads
> 
> Okay, win32, I see now, no way around this major braindamage then ;-).
> 
> Last time I had to use the Win32 API, I manually imported the needed
> entries (a dozen) using System.Address as parameter type and 'Address
> on various things on the caller side. This way I avoided the
> dependency on the Win32 binding hierarchy, hence easier build process.
> Of course, after a dozen functions, I'd switch to use the Win32
> binding.

If you write your own bindings, you shouldn't work with 'address. Use an
in out parameter instead. 
E.g. proc (ref : SYSTEM.ADDRESS); --> proc (ref : in out X);




  reply	other threads:[~2000-04-05  0:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-04  0:00 Access and alias NANCY HEHIR
2000-04-04  0:00 ` Laurent Guerby
2000-04-04  0:00   ` NANCY HEHIR
2000-04-04  0:00     ` Laurent Guerby
2000-04-05  0:00       ` Alfred Hilscher [this message]
2000-04-05  0:00         ` Laurent Guerby
2000-04-05  0:00         ` Ted Dennison
2000-04-05  0:00           ` Jeff Carter
2000-04-06  0:00             ` Robert Dewar
2000-04-07  0:00               ` Jeff Carter
2000-04-06  0:00             ` Alfred Hilscher
2000-04-07  0:00               ` Jeff Carter
2000-04-06  0:00           ` Robert Dewar
2000-04-06  0:00           ` tmoran
2000-04-07  0:00             ` Robert Dewar
2000-04-07  0:00               ` tmoran
2000-04-09  0:00                 ` Robert Dewar
2000-04-09  0:00                   ` tmoran
2000-04-10  0:00                 ` Jack W. Sharer
2000-04-05  0:00     ` Jeffrey D. Cherry
2000-04-04  0:00 ` tmoran
replies disabled

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