How to pass array parameter to dllcall?
Posted: 28 May 2023, 02:25
this is a dll function from C program:
this is my script:
It seems to get stuck while running the dllcall and the cpu spike is high, am I doing something wrong?
Code: Select all
__declspec(dllexport) int normqsp(double* values)
Code: Select all
values:= [0.12 , 2.12 , 3.12]
valuesP := Buffer(8 * values.Length,0)
loop values.Length
NumPut("Double", values[A_Index],valuesP,8*(A_Index-1))
DllCall("Project1.dll\normqsp","ptr",valuesP,"Int")