Forum: Win32/Win64 API (native code)
Delphi
by Namenloser,
28. Jan 2009
Dude, did you even read the answers? Or do you just look at the pretty letters? It has been said multiple times.
Forum: Win32/Win64 API (native code)
Delphi
by Namenloser,
28. Jan 2009
An object in Delphi is actually a 4 byte long pointer to a structure in the memory (on the heap). At the beginning, the pointer contains a random adress (often nil, but it could be whatever value the register had before). So we have to create the structure in the memory first and then remember the adress of this structure in the variable.
We do this by writing something like this:
var
...