🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Serial port COM10 and higher

#16316
From: Russell Hind
Date: Wed, 21 May 2003 10:01
33 lines
2091 bytes
I haven't got our code here at the moment, but I'll check and get back 
to you.  I can't remember ever using : or \ in port names thought, and 
our last project definitely used upto com13.

Cheers

Russell

In�s Fern�ndez wrote:
>>I'm sure on my last project, we just used "COM10", no :s or \s in the
>>name (we used upto port 13)
>>
>>Russell
>>
> 
> 
> Are you sure?
> Using just COM10 and higher with no "\" or ":", CreateFile returned an
> invalid handle here.
> My code was:
> 
>  hMyHandle = CreateFile("COM10",
>                                         GENERIC_READ | GENERIC_WRITE,
>                                         FILE_SHARE_READ | FILE_SHARE_WRITE,
>                                         NULL,
>                                         OPEN_EXISTING,
>                                         FILE_FLAG_OVERLAPPED,
>                                         NULL);
> 
> 
> In�s
> 
> 
Technical Details
Message-ID: <3ecb4ea7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eca4789$1@newsgroups.borland.com> <3ecb11f9$1@newsgroups.borland.com> <3ecb20c0@newsgroups.borland.com> <3ecb24da@newsgroups.borland.com> <3ecb3bbe@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,2ad1ab2fdcf6283f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-21 03:13:42 PST
Date: Wed, 21 May 2003 11:01:26 +0100
From: Russell Hind <rhind@mac.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.3.1) Gecko/20030425
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Serial port COM10 and higher
References: <3eca4789$1@newsgroups.borland.com> <3ecb11f9$1@newsgroups.borland.com> <3ecb20c0@newsgroups.borland.com> <3ecb24da@newsgroups.borland.com> <3ecb3bbe@newsgroups.borland.com>
In-Reply-To: <3ecb3bbe@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 212.240.15.125
Message-ID: <3ecb4ea7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1053511335 212.240.15.125 (21 May 2003 03:02:15 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail