| || |
Passing pointers to APIs
I am using some Windows APIs in my code, mainly the problem now is with SendMessage.
The last paramater in SendMessage is lParam which is declared As Any. In many cases, a variable needs to be converted to a pointer to it and passed as lParam to Windows.
I seem to fail with whatever I try... Does anybody know how to convert variables to pointers and work with APIs and DLLs ?
Re: Passing pointers to APIs
I'm not sure that this is what you meant but in order to convert a variable to a pointer u can use the VarPtr function. It returns a pointer to the variable.