Re: Opening COM ports over 9?

"George Geczy" <[email protected]> Wed, 31 May 2006 17:54:55 -0400
Newsgroups gmane.games.devel.windows
Message-ID <02a801c684fc$da8bd520$bf00a8c0@georgedevxp>
People still use COM ports?  Gosh, what a concept.

Strange as it may seem, this is the info I saw on this topic:

"To open a COM port greater than or equal to COM10, you have to prefix
the string "\\.\" to the COM port name.
In C it would look like this:
CreateFile( "\\\\.\\COM10",...)
because you have to escape the "\" character. "

Never tried it, good luck.

-- George.

- George Geczy
- Lead Programmer, BattleGoat Studios
- www.supremeruler2010.com
- "Designing the Next Generation of Intelligent Strategy Games"


> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] 
> On Behalf Of Andras Balogh
> Sent: Wednesday, May 31, 2006 5:47 PM
> To: [email protected]
> Subject: [GD-Windows] Opening COM ports over 9?
> 
> 
> I have a device on COM14, that I have to read data from. I'm using  
> Windows' CreateFile function to open the serial port. I can 
> open ports 1-9  
> no problem, but when I try to open COM14, Windows tells me 
> that the file  
> does not exist. However, I can open up COM14 in 
> HyperTerminal, and it  
> seems to work fine. I did notice that MSDN have a page on 
> file naming,  
> where it lists words from COM1 to COM9 as reserved, but 
> there's no word  
> about COM14. This tells me that COM14 is not supported, but 
> other programs  
> can still access it somehow..
> 
> Any ideas?



_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555