🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetOverlappedResult on virtual serial COM port

#4741
From: Bob Gonder
Date: Mon, 28 Nov 2005 21:14
11 lines
1445 bytes
Thom A. wrote:

>I have a problem scanning COM ports for a certain device:

You don't mention using SetCommTimeouts() which should probably be
done immediately after opening the port.

The code you provided appears to be using overlapped code to produce
blocking functionality. With proper timeouts, you should be able to
run just fine with blocking mode code, and be able to remove all that
overlapped code complexity
Technical Details
Message-ID: <eesmo11hrfk5ufk24gnedi363s01nv6uqu@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <438a0398$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,14a3bc55bdb22e73
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: GetOverlappedResult on virtual serial COM port
Date: Mon, 28 Nov 2005 13:14:16 -0800
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <eesmo11hrfk5ufk24gnedi363s01nv6uqu@4ax.com>
References: <438a0398$1@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: 71.49.215.160
X-Trace: newsgroups.borland.com 1133212416 71.49.215.160 (28 Nov 2005 13:13:36 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-out.spamkiller.net!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail