[fpc-pascal] Re: Find the nature of a pointer

Milan Marusinec milan at marusinec.sk
Mon Sep 4 21:43:14 CEST 2006


Hello Felipe,

> I have a function that will receive a Handle. That handle could be a
> pointer to a structure, or a object. Is there any safe way to discover
> it's nature?

What you want is possible with a little adjustment of the classes
you want to identify at runtime.
Look at the included example I am sending.
Does it solves your problem ?

Milano

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: PointerNature.dpr
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20060904/0736304a/attachment.ksh>


More information about the fpc-pascal mailing list