das habe ich hier probiert (Alles ohne Fehler)
allerding auch keine Hardware dran:
Code: Alles auswählen
Prototype.l USB32IO_OpenDevice(Par1.l, Par2.s,Par3.s, Par4.s)
Define.i hdll= OpenLibrary(#PB_Any,"USB32IO.dll")
If hdll
OpenDevice.USB32IO_OpenDevice = GetFunction(hdll, "OpenDevice")
Else
MessageRequester("Error","Library Error")
EndIf
Debug OpenDevice.USB32IO_OpenDevice
DevNum.b=20
s0.s="EZUSB"
s1.s=""
s2.s=""
DeviceID = CallFunction(hdll,"OpenDevice",@DevNum,@s0,@s1,@s2)
Debug DeviceID
DeviceID = OpenDevice(@DevNum,s0,s1,s2)
Debug DeviceID