Re: Opening COM ports over 9?

"Root, Konstantin" <[email protected]> Thu, 1 Jun 2006 12:02:09 +0300
Newsgroups gmane.games.devel.windows
Message-ID <EF580893E26B1D42ABA8A24A970E4CE8745B95@tln-exch.corp.fusionone.com>
> People still use COM ports?  Gosh, what a concept.

 Many high-end equipment is still controllable over COM only :( 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of
Andras Balogh
Sent: Thursday, June 01, 2006 1:07 AM
To: Game Development for MS Windows
Subject: Re: [GD-Windows] Opening COM ports over 9?

> 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/b
ase/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


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