Hi, I am new to this forum.
I would like to know if anyone out there has used a USB IO Warrior chip, and if so if they have managed to event detect the chip when it is plugged into the PC.
I had written this application,
Private Sub SysInfo1_DeviceArrival(ByVal DeviceType As Long, ByVal DeviceID As Long, ByVal DeviceName As String, ByVal DeviceData As Long)
' Initialize everything
' Open device
iowHandles(0) = IowKitOpenDevice()
' Fail if can't open
If iowHandles(0) = 0 Then
' Barf and exit from program
lblConnected.Caption = "Control unit disconnected"
Else
lblConnected.Caption = "Control unit connected"
End If
End Sub
but it does not seem to work, but if for example I plugged in a USB memory stick then it does work, the event gets triggered.
Can anyone help?
Thank you.
Enter your message below
Sign in or Join us (it's free).