If anyone could look over this and let me know if Ive converted this decleration correctly please...
C++
'int USBDMX_TYPE usbdmx_rdmdiscovery(HANDLE h, UCHAR universe, UCHAR txlen, const void *txbuffer, UCHAR rxsize, void *rxbuffer);
VB.Net
Declare Function usbdmx_rdmdiscovery Lib "usbdmx.dll" (ByVal handle As Integer, ByVal universe As Integer, ByVal txlen As Integer, ByVal txbuffer() As Byte, ByVal rxsize As Integer, ByVal rxbuffer() As Byte) As RdmRdmDiscReturnVals
'return values for rdm() and rdmdiscovery():
Enum RdmRdmDiscReturnVals
USBDMX_RDM_INPUT = -1 ', // input parameter wrong
USBDMX_RDM_TX = -10 ', // transmission failed
USBDMX_RDM_UNIVERSE = -11 ', // universe number wrong
USBDMX_RDM_RX = -20 ', // reception failed
USBDMX_RDM_RX_TIMEOUT = -21 ', // reception failed with timed out
USBDMX_RDM_RX_FRAMEERROR = -22 ', // reception failed with frame error
USBDMX_RDM_RX_NOBREAK = -23 ', // reception failed with no break
USBDMX_RDM_RX_LENGTH = -24 ', // reception failed with length error (received less data than expected)
USBDMX_RDM_RX_STARTCODE = -25 ', // wrong startcode received
USBDMX_RDM_RX_SUBSTARTCODE = -26 ', // wrong sub-startcode received
USBDMX_RDM_RX_CHECKSUM = -27 ', // reception failed with checksum error
USBDMX_RDM_COLLISION = -30 ' // collision detected
End Enum
Thanks guys
Br
Phezzz
C++
'int USBDMX_TYPE usbdmx_rdmdiscovery(HANDLE h, UCHAR universe, UCHAR txlen, const void *txbuffer, UCHAR rxsize, void *rxbuffer);
VB.Net
Declare Function usbdmx_rdmdiscovery Lib "usbdmx.dll" (ByVal handle As Integer, ByVal universe As Integer, ByVal txlen As Integer, ByVal txbuffer() As Byte, ByVal rxsize As Integer, ByVal rxbuffer() As Byte) As RdmRdmDiscReturnVals
'return values for rdm() and rdmdiscovery():
Enum RdmRdmDiscReturnVals
USBDMX_RDM_INPUT = -1 ', // input parameter wrong
USBDMX_RDM_TX = -10 ', // transmission failed
USBDMX_RDM_UNIVERSE = -11 ', // universe number wrong
USBDMX_RDM_RX = -20 ', // reception failed
USBDMX_RDM_RX_TIMEOUT = -21 ', // reception failed with timed out
USBDMX_RDM_RX_FRAMEERROR = -22 ', // reception failed with frame error
USBDMX_RDM_RX_NOBREAK = -23 ', // reception failed with no break
USBDMX_RDM_RX_LENGTH = -24 ', // reception failed with length error (received less data than expected)
USBDMX_RDM_RX_STARTCODE = -25 ', // wrong startcode received
USBDMX_RDM_RX_SUBSTARTCODE = -26 ', // wrong sub-startcode received
USBDMX_RDM_RX_CHECKSUM = -27 ', // reception failed with checksum error
USBDMX_RDM_COLLISION = -30 ' // collision detected
End Enum
Thanks guys
Br
Phezzz