Description
The CreatePort method creates new virtual serial port.
Syntax
Visual Basic
object.CreatePort PortNum
Visual C++
object.CreatePort(LONG PortNum);
Delphi
object.CreatePort(PortNum: Integer);
Remarks
| Parameter |
Description |
| PortNum |
[in] Number of virtual serial port to be created (1 - COM1, 2 - COM2, 3 - COM3, 4 - COM4, etc.) |
Errors
The CreatePort method may throw the following exceptions:
-
Port already exists
This serial port is already exists.
-
Virtual Serial Port service is unavailable
Service is not loaded.
-
Trial period is expired
Trial period is expired.
-
Invalid license key
License key provided is invalid.
-
License key does not allow to create this port
License key has port number limitation.