🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

CreateFile() API

#16135
From: Dale
Date: Wed, 28 May 2003 15:43
31 lines
1669 bytes
Greetings,

I have installed a PCI expansion board that has provided new
comm ports to my system. The Windows Device Manager lists
these new ports as COM8, COM9, COM10 and COM11 after all
the drivers are installed.

While using the CreateFile() API function to connect to COM10
and above Windows returns an INVALID_HANDLE_VALUE. Connecting
to COM9 is OK.

Is there a limitation to the number of ports that the
CreateFile() function will connect to? Any suggestions as to how to connect to ports with double or triple digits?

Using: C++ Builder 6.
Code Snip:
hCom = CreateFile( CommPort.c_str(),
	GENERIC_READ | GENERIC_WRITE,
	0,
	NULL,
	OPEN_EXISTING,
	0,
	NULL
);

if(hCom == INVALID_HANDLE_VALUE)
	"Throw an error here"

Thank you for your time,
Dale
Technical Details
Message-ID: <3ed4d917$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6bf2cfad862f105e,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-28 09:00:04 PST
From: "Dale" <dvanderheyden@datasym.com>
Sender: "Dale" <dvanderheyden@datasym.com>
Reply-To: "Dale" <dvanderheyden@datasym.com>
Subject: CreateFile() API
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 66.207.113.34 66.207.113.34    
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3ed4d917$1@newsgroups.borland.com>
Date: 28 May 2003 08:43:19 -0700
X-Trace: newsgroups.borland.com 1054136599 207.105.83.65 (28 May 2003 08:43:19 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail