Hi,
ich versuche mich das erste Mal gerade an Struct.
Spoiler anzeigen
C
#Region ;************ Includes ************
#include <File.au3>
#include <WinAPIFiles.au3>
#EndRegion ;************ Includes ************
Global $aMFC[17]
Global $callback = DllCallbackRegister('__Progress', 'int', 'uint64;uint64;uint64;uint64;dword;dword;ptr;ptr;ptr')
Global $ptr = DllCallbackGetPtr($callback)
Global $sStr = DllStructCreate('int;int;int;int;int;int;int;int;int;int;int;int;int;int;int;int;int')
For $j = 0 To UBound($aMFC) - 1
DllStructSetData($sStr, $j + 1, $j * 20)
Next
Global $sStruct_vorher = DllStructGetData($sStr, 4) ;60
ConsoleWrite("Struct vorher" & @TAB & $sStruct_vorher & @CRLF)
Global $sTmp = _TempFile()
FileWrite($sTmp, "test")
DirCreate(@TempDir & "\temp\")
Global $z = _WinAPI_CopyFileEx($sTmp, @TempDir & "\temp\test.tmp", 0, $ptr, $sStr)
Func __Progress($Par1, $Par2, $Par3, $Par4, $Par5, $Par6, $Par7, $Par8, $Par9)
$sStruct_nachher = DllStructGetData($Par9, 4) ;??????????????????????????????????
ConsoleWrite("Struct nachher" & @TAB & $sStruct_nachher & @CRLF)
EndFunc ;==>__Progress
Alles anzeigen
In Zeile 27 möchte ich die Daten von Struct wieder abrufen. Wie komme ich da dran?