From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,de6e25f4798a943d X-Google-Attributes: gid103376,public From: Philip Johnson Subject: Re: Win32 serial port programming Date: 1997/06/11 Message-ID: <339F13A2.DAC00E00@hiwaay.net>#1/1 X-Deja-AN: 247732896 References: <339CAC56.12C@erols.com> To: luv2dive@erols.com X-Priority: 3 (Normal) Reply-To: philipj@hiwaay.net Newsgroups: comp.lang.ada Date: 1997-06-11T00:00:00+00:00 List-Id: 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 | -------------------------------------------------------------------