Hi Benj,
Yes we have been referring to that page.
Specifically we were after the return codes from the functions ECIO_Open and ECIO_Transmit. They return an int based on the result of the function but we have no idea what that int means. For ECIO_Transmit we have received 0, 1, 5, and 31 at different times. From what we can determine 0 is when there is no MIAC connected, 1 is OK, but we have no idea what rturn values 5 and 31 mean.
For example in the VB examples, Example 1, Form1_Load there is the following code:
Code: Select all
Dim lRetVal As Integer
lRetVal = ECIO_Open(0, sID(0))
ECIO_Open is declared as:
Code: Select all
Private Declare Function ECIO_Open Lib "ECIO_api.dll" (ByVal index As Integer, ByRef pVID_PID As Byte) As Integer
But the value assigned to lRetVal is never checked, and we have no idea what the different return values can be. Sometimes when we transmit using ECIO_Transmit...
Code: Select all
Private Declare Function ECIO_Transmit Lib "ECIO_api.dll" (ByRef pDataOut As Byte, ByVal dwLenOut As Integer, ByRef pActualLenOut As Integer, ByRef pDataIn As Byte, ByVal dwExpectedLenIn As Integer, ByRef pActualLenIn As Integer, ByVal dwTimeout As Integer) As Integer
...we receive different values as lRetVal, normally it is 1, which we take means OK, and any other value we handle as error, but it would be good to know what the different values actually mean so we can handle them accordingly rather than as a generic error.
Is there a reference for this anywhere?