Article View: borland.public.cppbuilder.nativeapi
Article #5031Re: serial COM ports from various COM objects
From: Remy Lebeau (TeamB)
Date: Tue, 01 Nov 2005 17:22
Date: Tue, 01 Nov 2005 17:22
15 lines
1525 bytes
1525 bytes
"Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message news:43677c8e$1@newsgroups.borland.com... > Who can tell the way how to access to serial port from > COM object (ReadFile, WriteFile :nonverlapped) if > CreateFile for serial port was called from another COM object. You cannot. Serial and Parallel ports can only have one handle opened to them at a time, and that handle has exclusive access. Two objects cannot open the same port at the same time. The second object will always fail until the first object closes the port. Gambit
Technical Details
Message-ID:
<4367a444$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<43677c8e$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,a36c2447d040b89c X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <43677c8e$1@newsgroups.borland.com> Subject: Re: serial COM ports from various COM objects Date: Tue, 1 Nov 2005 09:22:19 -0800 Lines: 17 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <4367a444$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130865732 68.69.17.41 (1 Nov 2005 09:22:12 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail