Home > database >  For help: use MSComm32. Ocx do serial communication program, the serial port choosing wrong how can
For help: use MSComm32. Ocx do serial communication program, the serial port choosing wrong how can

Time:09-28

Use MSComm32. Ocx do serial communication program, but always an error exit when no serial port choice, how to give a normal tip and not exit the program?

CodePudding user response:

Try
Open the serial port
catch

CodePudding user response:

Such a difference, as if this is a c # application

CodePudding user response:

refer to the second floor zyxaaa response:
such a difference, as if this is a c # application


Work pb also have a try to catch

CodePudding user response:

Nine plus

CodePudding user response:

Engineering systemerror writing code in the
Messagebox (string (the error number), the error. The text)
Error. The number in opening a serial port error value is 39
Can do. If the error code number=39
  • Related