Ich möchte gerne einer DLL-Funktion ein Array aus Strukturen übergeben. Ist das irgendwie möglich und wenn ja wie?
Gibt es da einen Umweg oder geht es einfach nicht?
Danke für etwaige Hilfen.
Beispielcode
[autoit]
Global Const $_Struct = "byte[2];ushort;int"
[/autoit] [autoit][/autoit] [autoit]Global $hDLL = DllOpen("Sample.dll")
[/autoit] [autoit][/autoit] [autoit]Local $_Sample = DllStructCreate($_Struct[200]) ;hier ist das Problem
[/autoit] [autoit][/autoit] [autoit]Local $p_Sample = DllStructGetPtr($_Sample)
[/autoit] [autoit][/autoit] [autoit]Local $aRet = DllCall($hDLL, "int", "Sample", "ptr", $p_Sample)
[/autoit]