503
« on: January 19, 2009, 01:11:19 PM »
The solution is quite simple.
In your Visual Basic 6.0 environment, go to Project > References..., find 'PoKeys device communication DLL' in the list (if you cannot find the entry, click Browse and locate .tlb file in PoKeys installation folder). Then press magic F2 key (it opens Object browser) and select PoKeysDevice_DLL in upper combo box. Now you can see all the functions and their parameters that PoKeys communication DLL supports.
To use the objects in DLL, proceed in this way (this is possible after you add Reference to PoKeys DLL):
Dim device As New PoKeysDevice
device.EnumerateDevices
device.ConnectToDevice 0
device.DisconnectDevice
Set device = Nothing