Richard Mace schrieb:
Thanks for the reply.
Can't it be type casted because both a pointer and integer are 4 bytes?

Dunno about Lazarus, but casts work in Delphi.

Hint: pointers may be longer than integers, but never shorter. So you won't loose information when e.g. storing an 32 bit integer into a 64 bit pointer field. Consequently the opposite direction, i.e. storing an pointer in an integer field, may not work.

That's why newer Delphi versions also have the Tag properties expanded, so that it's possible to store pointers there.

DoDi


--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to