Hallo
kann mir bitte jemand weiterhelfen.
Wie ruft man folgende DLL Funktion in Delphi auf:
C
NoMangle long DLL_IMPORT_EXPORT csp2GetDeviceId(char szDeviceId[8], long nMaxLength);
In VB ist es so gemacht:
Declare Function csp2GetDeviceId Lib "csp2.dll" (szDeviceId As Byte, ByVal nMaxLength As Long) As Long
Private Sub CS1504InfoRefresh_Click()
Dim arrbyteBuffer(19) As Byte '20 elements
' Get the device id..
nRC = csp2GetDeviceId(arrbyteBuffer(0), 10)
If nRC > 0 Then
bstrString = "0x"
...
Besten Dank
Peter Würstle
kann mir bitte jemand weiterhelfen.
Wie ruft man folgende DLL Funktion in Delphi auf:
C
NoMangle long DLL_IMPORT_EXPORT csp2GetDeviceId(char szDeviceId[8], long nMaxLength);
In VB ist es so gemacht:
Declare Function csp2GetDeviceId Lib "csp2.dll" (szDeviceId As Byte, ByVal nMaxLength As Long) As Long
Private Sub CS1504InfoRefresh_Click()
Dim arrbyteBuffer(19) As Byte '20 elements
' Get the device id..
nRC = csp2GetDeviceId(arrbyteBuffer(0), 10)
If nRC > 0 Then
bstrString = "0x"
...
Besten Dank
Peter Würstle
Comment