TCIC User’s Manual
31
4.5 Troubleshooting
Q. I can communicate with the TCIC when it is located in COM1
through COM9, but when it is in COM10 or more, my application
does not work. The TCIC-Monitor, however, works fine.
A. Opening COM port 10 or above is done differently:
Prefix "\\.\" to its name.
For example:
In C:
CreateFile( "\\\\.\\COM10",...)
In VB.Net:
' Creates a COM Port stream handle
Dim COM_Name As String = "COM" & miPort.ToString
If miPort > 9 Then
COM_Name = "\\.\COM" & miPort.ToString
End If
mhRS = CreateFile(COM_Name, _
GENERIC_READ Or GENERIC_WRITE, 0, 0, _
OPEN_EXISTING, iMode, 0)