🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Talking to COM1

#12946
From: Bob Gonder
Date: Sat, 08 Nov 2003 06:24
13 lines
1487 bytes
Nick Gessler wrote:

>I have been writing code to talk to COM1 successfully in W98.
>However, the code runs 10X SLOWER on the new machines where I teach.

>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

Is there some reason you are using TransmitCommChar instead of
WriteFile?  You should be able to remove all of those Sleep commands,
and reduce the writes to a single call.
If it's a timing problem, maybe you need to use the RTS/CTS or DTR/DSR
signals.
Technical Details
Message-ID: <g62pqv0cgmacqpkeri10mng1gho7sr3v6i@4ax.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-07 22:45:41 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Talking to COM1
Date: Fri, 07 Nov 2003 22:24:19 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <g62pqv0cgmacqpkeri10mng1gho7sr3v6i@4ax.com>
References: <3fac73e3$2@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.244.6.43
X-Trace: newsgroups.borland.com 1068272659 216.244.6.43 (7 Nov 2003 22:24:19 -0700)
Lines: 14
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