Re: Opening COM ports over 9?

"Andras Balogh" <[email protected]> Wed, 31 May 2006 16:06:45 -0600
Newsgroups gmane.games.devel.windows
Message-ID <op.tafrpjvzik7roz@blueled>
> People still use COM ports?  Gosh, what a concept.

It's actually a virtual COM port hiding a high-tech GPS unit connected via  
USB port...


> 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. "

Funny I've just found the same info right after I hit send:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/communications_resource_handles.asp


> Never tried it, good luck.

It works.

thanks,


Andras


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