🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12948

Re: Talking to COM1

#12948
From: Michel Leunen
Date: Sat, 08 Nov 2003 09:58
18 lines
1566 bytes
Nick Gessler wrote:


> The code I'm using is in the first few blocks on my website at:
> http://www.sscnet.ucla.edu/geog/gessler/borland/ezio.txt

Don't use TransmitCommChar() to send data to the port. Instead use 
WriteFile(). TransmitCommChar() sends a char ahead of any pending data. 
So it's uses to send a CTRL+BREAK for instance to a device. Also use 
overlapped operations if you use the port in a thread.

Michel
-- 
----------------------------------------
Michel Leunen
mailto:michel@leunen.com
http://www.leunen.com/cbuilder/
----------------------------------------
Technical Details
Message-ID: <3facbe56$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fac73e3$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4deaf4c542e3da12
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-08 02:09:08 PST
Date: Sat, 08 Nov 2003 10:58:42 +0100
From: Michel Leunen <mleu@STOPSPAMskynet.be>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Talking to COM1
References: <3fac73e3$2@newsgroups.borland.com>
In-Reply-To: <3fac73e3$2@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 80.200.28.61
Message-ID: <3facbe56$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1068285526 80.200.28.61 (8 Nov 2003 01:58:46 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail