[fpc-pascal]Win32 API Call

Gabor DEAK JAHN djg at tramontana.co.hu
Sat Dec 8 13:32:30 CET 2001


At 12/7/2001 03:38 PM, you wrote:

Jim,

 > If this is corrected, you don't have to use the '@' operator before the
 > third parameter any more.

Self-correction: actually, you'll have to use it for all three parameters.
What I really meant to say was that you don't have to write one parameter
different than the others.

The '@' is simply a result of not using dynamic variables like you did (with
New and Dispose) but static ones. With dynamic variables, the reference you
keep and use is the pointer to it, with static variables, the variable
itself.

There are four cases in total (two kinds of variables times two roles, the
variable itself and a pointer to it), thus you need two additional operators
to cater for all cases: @ and ^.


Bye,
    Gábor

-------------------------------------------------------------------
Gabor DEAK JAHN -- Budapest, Hungary.
E-mail: djg at tramontana.co.hu





More information about the fpc-pascal mailing list