Ich supporte nicht per PM - Jeder sollte von euren Lösungen profitiren können!
Hier die funktionierende Lösung zu AutoIt3 aus diesem Thread:
$id = 53246
$result2 ="##";
$TrixiDLL = DllOpen("trixi.dll")
DllCall($TrixiDLL,"none","WriteDebugFile", "str", "test.txt", "int", 1)
ConsoleWrite ($TrixiDLL & @crlf)
$result = DllCall($TrixiDLL, "int", "Connect", "str", "127.0.0.1", "int", 3773)
If @error = 0 Then ConsoleWrite ("+")
If @error = 1 Then MsgBox(0,"ERROR","Unable to use the DLL file.")
If @error = 2 Then MsgBox(0,"ERROR","Unknown return type.")
If @error = 3 Then MsgBox(0,"ERROR","Function not found in the DLL file.")
ConsoleWrite ("->>>" & $result & "<-:" & $result2)
$result2 = DllCall($TrixiDLL, "str", "ReadString", "int", $id)
If @error = 0 Then ConsoleWrite ("+")
If @error = 1 Then MsgBox(0,"ERROR","Unable to use the DLL file.")
If @error = 2 Then MsgBox(0,"ERROR","Unknown return type.")
If @error = 3 Then MsgBox(0,"ERROR","Function not found in the DLL file.")
ConsoleWrite ("->>>" & $result & "<-:" & $result2)
$result2 = DllCall($TrixiDLL, "int", "WriteString", "int", $id, "str", "Test Test")
If @error = 0 Then ConsoleWrite ("*")
If @error = 1 Then MsgBox(0,"ERROR","Unable to use the DLL file.")
If @error = 2 Then MsgBox(0,"ERROR","Unknown return type.")
If @error = 3 Then MsgBox(0,"ERROR","Function not found in the DLL file.")
DllClose($TrixiDLL)
Vielen Dank, Anti.
Errorhandling kann hier theoretisch raus geschmissen werden.