Hallo Zusammen,
sorry aber ich bekomms nicht hin. Ich habe folgende Beschreibung einer DLL-Funktion:
unsigned int CalcCRC(const char* filePath, char* lpCRC)
filePath --> Pfad zur Datei, die eingelsen werden soll
lpCRC --> Zeiger auf leeren Puffer für die CRC
Wie rufe ich nun die DLL auf? Folgendes Skript bringt autoit zum Absturz
Spoiler anzeigen
[autoit]
$CRC = 0
$file = FileOpen("Test6a.hex", 0)
[/autoit] [autoit][/autoit] [autoit]If $file = -1 Then
MsgBox(0, "Error", "Unable to open file.")
Exit
EndIf
$dll = DllOpen("DLL_Test.dll")
[/autoit] [autoit][/autoit] [autoit]$result = DllCall($dll, "uint", "CalcCRC", "int_ptr", $file, "int_ptr", $CRC)
[/autoit]Bin über jede Hilf dankbar!!!