Article ID: 147653
Article Last Modified on 8/5/2004
119591 How to Obtain Microsoft Support Files from Online Services
Sub Command1_Click ()
Mscomm1.PortOpen = True '(Default name of control has changed in VB4)
Mscomm1.PortOpen = False
End Sub
' Enter each of the following Declare statements on one, single line:
Declare Function OpenComm Lib "User" (ByVal lpComName As String, ByVal
wInQueue As Integer, ByVal wOutQueue As Integer) As Integer
Declare Function CloseComm Lib "User" (ByVal nCid As Integer)
As Integer
Sub Command1_Click ()
Dim id As Integer, success As Integer
id = OpenComm("COM1", 1024, 128)
success = CloseComm(id)
End Sub
Additional query words: Wg1001 serial comm port
Keywords: kbdownload kbbug kbfile kbsample kbpending KB147653