Attaches to virtual serial port with non-standard name.
| Visual Basic | Sub Attach()
|
|---|---|
| Delphi | procedure Attach();
|
| Visual C++ (MFC) | void Attach();
|
| Visual C++ (#import) | void Attach();
|
None.
None.
The method may throw exception. Use GetLastError method to get the error code.
| ftvspcErrorFailed | 1 | The operation has not been completed. |
|---|---|---|
| ftvspcErrorInvalidParameter | 2 | Invalid parameter. |
| ftvspcErrorNoSuchPort | 101 | There is no such port. |
| ftvspcErrorPortAttached | 200 | This port is already attached. |
| ftvspcErrorMarkedForDeletion | 202 | This port is marked for deletion. |