EmbeddedMan
28-09-2015, 17:38
The help says that COMM_Open() will set Err to some value if there is an error detected when opening a com port.
I'm running Windows 7 64 bit, and no matter which com port I try to open, I always see the Err is 0 after COMM_Open(), no matter if the port exists or if it doesn't exists.
Shouldn't there be some way to tell if the COMM_Open() call failed? In other words, if you try to open a non-existent COM port?
No matter what number I have for sComPort, this line of code
COMM_Open("\\.\COM" & sComPort, hComm)
doesn't seem to do anything to the Err value of 0.
Thanks-
*Brian
I'm running Windows 7 64 bit, and no matter which com port I try to open, I always see the Err is 0 after COMM_Open(), no matter if the port exists or if it doesn't exists.
Shouldn't there be some way to tell if the COMM_Open() call failed? In other words, if you try to open a non-existent COM port?
No matter what number I have for sComPort, this line of code
COMM_Open("\\.\COM" & sComPort, hComm)
doesn't seem to do anything to the Err value of 0.
Thanks-
*Brian