Hallo,
ich habe eine Dll und ein Beispiel für die Deklaration in VB.
Nun wollte ich hier mal fragen ob mir jemand den VB Code in Delphi übersetzen könnte, damit ich die DLL in mein Programm einbinden kann. Leider kann ich selber kein VB und kann somit die Deklaration nicht selber portieren.
Ich danke schon einmal herzlich im Voraus für die Hilfe.
Hier folgt der VB-Code:
Quelltext
1: 2: 3: 4: 5: 6:
| Private Declare Function RCInitBoxes Lib "jnutl.dll" Alias "_InitBoxes@0" () As Long Private Declare Function RCOpenBox Lib "jnutl.dll" Alias "_OpenBox@8" (ByVal boxnumber As Long, ByRef DLLBoxConfiguration As RaceControlBoxConfiguration) As Long Private Declare Function RCRXData Lib "jnutl.dll" Alias "_RX_data@8" (ByVal boxnumber As Long, ByVal RXData As Byte) As Long Private Declare Function RCTXData Lib "jnutl.dll" Alias "_Get_TXDat@4" (ByVal boxnumber As Long) As Integer Private Declare Function RCGetEvent Lib "jnutl.dll" Alias "_Get_Event@4" (ByRef DLLEvent As RaceControlEvent) As Long Private Declare Function RCLongSub Lib "jnutl.dll" Alias "_JNLongSub@8" (ByVal Value1 As Long, Value2 As Long) As Long |
Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
| Private Type RaceControlBoxConfiguration res0 As Integer res1 As Integer level As Integer verz As Integer nachl As Integer zzx As Boolean szx As Boolean enable As Boolean End Type |
Quelltext
1: 2: 3: 4:
| Private Type RaceControlEvent comm As Long wcnt As Long End Type |