 |
How to access serial and parallel ports by using Visual Basic .NET
' Declare the local variables that you will use in the code. Dim hSerialPort, hParallelPort As IntPtr Dim Success As Boolean Dim MyDCB As DCB Dim MyCommTimeouts As COMMTIMEOUTS Dim BytesWritten, BytesRead As Int32 Dim Buffer() As Byte ' Declare the ...
support.microsoft.com |
 |