From kronos.arc.nasa.gov!ames!hookup!swrinde!cs.utexas.edu!howland.reston.ans.net!EU.net!Germany.EU.net!ping.de!jwd!wvalley.ping.de!chris Sat Apr 9 22:47:44 1994 Path: kronos.arc.nasa.gov!ames!hookup!swrinde!cs.utexas.edu!howland.reston.ans.net!EU.net!Germany.EU.net!ping.de!jwd!wvalley.ping.de!chris Date: 15 Mar 1994 11:00:00 +0100 From: chris@wvalley.ping.de (Christian Scheer) Newsgroups: comp.os.ms-windows.programmer.misc Message-ID: <5KtNXQWCiRB@wvalley.ping.de> References: Subject: Re: progr. serial comm port in windows X-Newsreader: XP v2.92 beta Lines: 19 Martin, > If somebody has an example like that, would he/she want to > share it with me (please) ??? Try to find someone with a Microsoft Compiler and/or the Win 3.1 SDK. Those products come with a lot of samples, one of them called TTY. It contains the source for a simple terminal program. (On the VC 1.5 CD look for \msvc\samples\tty) ciao (hristian phone +49 202/45 09 92 fax +49 202/45 09 93 CIS 100330,263 email: chris@wvalley.ping.de Fido: Christian Scheer 2:2444/1099 ## CrossPoint v2.92 ## From kronos.arc.nasa.gov!ames!pacbell.com!ihnp4.ucsd.edu!galaxy.ucr.edu!library.ucla.edu!csulb.edu!csus.edu!netcom.com!joefitz Sat Apr 9 22:48:47 1994 Xref: kronos.arc.nasa.gov comp.os.ms-windows.programmer.misc:27096 comp.os.ms-windows.misc:23207 Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.misc Path: kronos.arc.nasa.gov!ames!pacbell.com!ihnp4.ucsd.edu!galaxy.ucr.edu!library.ucla.edu!csulb.edu!csus.edu!netcom.com!joefitz From: joefitz@netcom.com (Joe Fitzpatrick) Subject: Re: Serial Line Programming (COMx) under Windows Example Code Needed Message-ID: Followup-To: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.misc Organization: NETCOM On-line Communication Services (408 241-9760 guest) X-Newsreader: TIN [version 1.2 PL1] References: Date: Sat, 2 Apr 1994 01:27:17 GMT Lines: 23 Peter Tam (pct@lyra.STANFORD.EDU) wrote: : Hi, : Is there a Windows Serial Line Program example code available? I try to : program serial line access, & can't get GetCommEventMask to return anything : more than a 0, even after I SetCommEventMask() with all event masks on. Even : SetCommState returns a pointer to a 0 word! : My call order is OpenComm(), BuildCom(), SetCommState(), SetCommEventMask(), : then EscapeComm(), then GetCommEventMask! : THANKS FOR ANY HELP! There is an ultra simple terminal example called WSERIAL.ZIP in one of the librarys in the BCPPWIN forum on compuserve. There is also a SAMS book called THE WINDOWS PROGRAMMER'S GUIDE TO SERIAL COMMUNICATIONS which includes a disk and has both polled and message driven examples. Good luck. Joe Fitzpatrick