Article View: comp.windows.ms.programmer
Article #3449Re: Looking for a COM DLL (or DDE)
From: Hans van Oostrom
Date: Fri, 28 Jun 1991 00:25
Date: Fri, 28 Jun 1991 00:25
46 lines
2820 bytes
2820 bytes
In article <1991Jun26.204757.19291@cbnews.cb.att.com>, nak@cbnews.cb.att.com (neil.a.kirby) writes...
>I'm looking for a serial communications DLL. I can't be the only one...
>
>I would not mind coming across a DDE TSR that would manage the com port,
>but a DLL should do the job - I just don't want to write the thing.
>
A TSR is definitly not the way to go. Windows has interrupt driven
serial I/O drivers build in, and they work pretty good if you don't do
high baud rates. The following functions are part of the SDK:
Communication Functions
Function Description
BuildCommDCB Fills a device control block with control codes.
ClearCommBreak Clears the communication break state from a
communication device.
CloseComm Closes a communication device after transmitting the
current buffer.
EscapeCommFunction Directs a device to carry out an extended
function.
FlushComm Flushes characters from a communication device.
GetCommError Fills a buffer with the communication status.
GetCommEventMask Retrieves, then clears, an event mask.
GetCommState Fills a buffer with a device control block.
OpenComm Opens a communication device.
ReadComm Reads the bytes from a communication device into a
buffer.
SetCommBreak Sets a break state on the communication device.
SetCommEventMask Retrieves and then sets an event mask on the
communication device.
SetCommState Sets a communication device to the state specified by
the device control block.
TransmitCommChar Places a character at the head of the transmit queue.
UngetCommChar Specifies which character will be the next character
to be read.
WriteComm Writes the bytes from a buffer to a communication
device.
You can write a DLL to interface with some or all of these functions
if you really need a DLL. Otherwise just use them in your program.
Hans van Oostrom
PO Box J-254, JHMHC hans@ufpine (BITNET)
Gainesville, FL 32601, USA hans@pine.circa.ufl.edu (INTERNET)
>>> Hoe ver je ook gaat, overal zie je landgenoten <<<
Technical Details
Message-ID:
<29426@uflorida.cis.ufl.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!europa.asd.contel.com!gatech!mailer.cc.fsu.edu!uflorida!pine.circa.ufl[A.edu!hansReferences:
<1991Jun26.204757.19291@cbnews.cb.att.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!europa.asd.contel.com!gatech!mailer.cc.fsu.edu!uflorida!pine.circa.ufl[A.edu!hans From: hans@pine.circa.ufl.edu (Hans van Oostrom) Newsgroups: comp.windows.ms.programmer Subject: Re: Looking for a COM DLL (or DDE) Message-ID: <29426@uflorida.cis.ufl.EDU> Date: 28 Jun 91 00:25:27 GMT References: <1991Jun26.204757.19291@cbnews.cb.att.com> Sender: news@uflorida.cis.ufl.EDU Reply-To: hans@pine.circa.ufl.edu Organization: University of Florida - Dept. of Anesthesiology Lines: 46 News-Software: VAX/VMS VNEWS 1.3-4