in Delphi TIPS :: Oh, what a stupid title. :(
The title is about 4 lines of code - a trick when using simple types like integers for Pointer type value parameters in callback functions. Ha, again this makes no sense :(
Ok, let's try it this way: how to preserve the value of a simple type variable, like an integer, when the parameter of a function is a is a Pointer value parameter and the function will be called several times. Ha, that's better (I hope).
Read the full article to learn about Passing a Simple Type Variable (Integer) for a Pointer Parameter.