1,486
社区成员
发帖
与我相关
我的任务
分享
Private Sub Command1_Click()
Dim data As Long
Dim i As Long
For i = 16 To 45
SetPortVal "&H70", "&H" & Hex(i), 1
Sleep (1)
Print GetPortVal("&H71", data, 4)
Print i, data
data = 0
Next
End Sub
Private Sub Form_Load()
If InitializeWinIo = False Then
MsgBox "Whoops ! There is a problem with InitializeWinIo.", vbOKOnly + vbCritical, "TEST"
Unload me
End If
End Sub
Private Sub Form_Unload(Cancel As Integer)
Call ShutdownWinIo
End Sub