Mr-Ntic / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

qextserialenumerator_win.cpp naming problem #56

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In code line 195 the function qextserialport::fullPortNameWin is being
used, which generate the name for a com port bigger than 9 in the way
"\\.\COM10".
Then if this generated name is used in the setPortName function it is going
to have this result "\\.\\\.\COM10". It is possible to check in the
function qextserialport::fullPortNameWin if already contains the needed
prepend string "\\.\", not prepend it, or even better remove the call of
this function in the code line 195 to retrive the port names out of the
registry.

PD: Well, we used this enumerator to fill up a comboBox, an the selected
string is used to open a port.

PD2: hope is usefull.

CAFU, and friends

Original issue reported on code.google.com by cafu2...@gmail.com on 14 Apr 2010 at 9:46

GoogleCodeExporter commented 8 years ago
qextserialenumerator should provide COM10 instead of \\.\COM10

\\.\COM10 should be only used in QextSerialPort::open() internally.

Original comment by dbzhang...@gmail.com on 10 Nov 2011 at 9:44

GoogleCodeExporter commented 8 years ago

Original comment by dbzhang...@gmail.com on 16 Mar 2012 at 8:48