From: Philip Johnson <philipj@hiwaay.net>
To: luv2dive@erols.com
Subject: Re: Win32 serial port programming
Date: 1997/06/11
Date: 1997-06-11T00:00:00+00:00 [thread overview]
Message-ID: <339F13A2.DAC00E00@hiwaay.net> (raw)
In-Reply-To: 339CAC56.12C@erols.com
Anne & Bill Pritchett wrote:
> Does anybody out there have an Ada 95 package (class) to read to/write
>
> from a serial port under Win32 (WinNT)?
Bill,
The are Win32Ada bindings for the Win32 GetComm* functions. The serial
port can be treated
like a file to create, read, write, etc. The NT serial ports have
standard designations of Com1-4. Win32 dows not provide a mechanism to
determine what Comm ports are installed.
You will have to build your own exception handler to help determine
which ports are installed.
This method does not allow you to touch the hardware directly. To do
that you will have to
write the app as a kernel mode driver.
I am porting a C++ application that uses several serial port to Ada95
using ObjectAda. When I get a solid example talking to the ports I will
post it to the group.
Phil
----
___________________________________________________________________
| |
| Ceilidh [Kay Lee] gaelic: A gathering of friends |
| |
|Philip Johnson Telco: (205) 830-9663 |
|Sr. Software Engineer email:philipj@HIWAAY.net|
|Ceilidh Systems Inc. |
|Madison, AL 35758 |
-------------------------------------------------------------------
prev parent reply other threads:[~1997-06-11 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-06-09 0:00 Win32 serial port programming Anne & Bill Pritchett
1997-06-10 0:00 ` NT serial ports and VGA Michael F Brenner
1997-06-11 0:00 ` Philip Johnson [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