Addr function / @operator

I'd like to write a script wich calls windows api functions. Most of these functions need pointers. But it seems that neither Addr function nor @operator are avalaible in my script environment. How can i resolve this problem ?


p/o Philippe Tailleur,

Jean-Philippe Crutzen
jean-philippe.crutzen@sage.com

Scripter doesn't support pointers. All variables in script are variants internally, so using a @operator won't give you anything relevant. You can still use pointers if you receive a valid pointer from Delphi (for example, a pointer variable or a method that return a pointer). In this case you can just typecast the pointer to an integer before returning it to scripter, and when receiving an integer from script again, if you know it's safe, you can cast it back to a pointer.