Archive: HELP: system dll, array help


HELP: system dll, array help
Would someone know how to create and access character arrays using the system dll?

TCHAR variable[38];


To allocate the memory you should use System::Alloc which returns the pointer to the allocated memory on the stack. To get the Xth char from the array try using:

System::Call "*$ARR_PTR(&tX-1, &i1 r1)"
DetailPrint "Xth char is $1"


It works but only when I user .r1 instead of just r1.

System::Call "*$ARR_PTR(&tX-1, &i1 .r1)"

Thanks for the help. I'll be posting the resulting code shortly.


You could also allocate arrays using
System::Call "*(&t41) i.r1"
instead of Alloc.
And fill it with info at once:
System::Call `*(&t41 "That's it") i.r1`