Global $massiv1[5][2] = [[4,0], _
[-4900,1], _
[1400,2], _
[1500,3], _
[1600,4]]
_Obrabotka_Massiva_Koordinat_DLL($massiv1)
Func _Obrabotka_Massiva_Koordinat_DLL(ByRef $Massiv_vseh_koordinat)
$razmer_Massiva = UBound($Massiv_vseh_koordinat)
$tStruct = DllStructCreate("int X["&$razmer_Massiva&"]; int Y["&$razmer_Massiva&"]")
For $s1 = 0 To $razmer_Massiva - 1
DllStructSetData($tStruct, "X", $Massiv_vseh_koordinat[$s1][0], $s1+1)
DllStructSetData($tStruct, "Y", $Massiv_vseh_koordinat[$s1][1], $s1+1)
Next
If DllOpen(@ScriptDir & '\Obrabotka_Massiva_Koordinat.dll') = -1 Then Exit 1
$a_Res = DllCall('Obrabotka_Massiva_Koordinat.dll', 'int', '_TestArray', 'struct*', $tStruct, 'word', $razmer_Massiva)
If @error Then Exit 2
ConsoleWrite('$a_Res[0]: ' & $a_Res[0] & @LF)
EndFunc