Article View: borland.public.cppbuilder.nativeapi
Article #2217Re: How to access COM12
From: Remy Lebeau (TeamB)
Date: Fri, 23 Mar 2007 21:39
Date: Fri, 23 Mar 2007 21:39
17 lines
1665 bytes
1665 bytes
"Helmut Giese" <hgiese@ratiosoft.com> wrote in message
news:4604415e.2029877@forums.borland.com...
> I have a many-year-old application which handles several modems
> at the same time. Now the system got once more expanded, I
> have to deal with COM ports up to '12' - and I cannot open them
That is because you are not opening them correctly. If you read the
documentation for CreateFile() at MSDN, you will see the following:
"To specify a COM port number greater than 9, use the following
syntax: "\\\\.\\COM10". This syntax works for all port numbers and
hardware that allows COM port numbers to be specified."
Gambit
Technical Details
Message-ID:
<46044966$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!newsfeed.datemas.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder08.uucp.at!feeder10.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<4604415e.2029877@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,298d0aeb494eed72 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: <4604415e.2029877@forums.borland.com> Subject: Re: How to access COM12 Date: Fri, 23 Mar 2007 13:39:38 -0800 Lines: 19 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: 75.83.34.171 Message-ID: <46044966$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1174686054 75.83.34.171 (23 Mar 2007 14:40:54 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.germany.com!newsfeed.datemas.de!news.albasani.net!feeder06.uucp-net.de!reader.uucp.at!feeder08.uucp.at!feeder10.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail