Re: [GD-Windows] Opening COM ports over 9?
Brought to you by:
vexxed72
From: George G. <ge...@ba...> - 2006-05-31 21:54:56
|
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: gam...@li... > [mailto:gam...@li...] > On Behalf Of Andras Balogh > Sent: Wednesday, May 31, 2006 5:47 PM > To: gam...@li... > 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? |