comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent Guerby <guerby@acm.org>
Subject: Re: Access and alias
Date: 2000/04/04
Date: 2000-04-04T20:15:07+00:00	[thread overview]
Message-ID: <86aej9aa8y.fsf@ppp-169-201.villette.club-internet.fr> (raw)
In-Reply-To: v7rG4.1684$sB3.964@news.indigo.ie

"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.

> Thanks for your help

You're welcome.

--LG




  reply	other threads:[~2000-04-04  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 [this message]
2000-04-05  0:00       ` Alfred Hilscher
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             ` Alfred Hilscher
2000-04-07  0:00               ` Jeff Carter
2000-04-06  0:00             ` Robert Dewar
2000-04-07  0:00               ` Jeff Carter
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-06  0:00           ` Robert Dewar
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