[fpc-pascal] Pointer address into string
ik
idokan at gmail.com
Mon May 5 17:10:35 CEST 2008
Look at the Format function, you can tell it to display the address of
a pointer in a string.
Ido
On Sun, May 4, 2008 at 7:21 PM, Damien Gerard <milipili at shikami.org> wrote:
>
> Hi !
>
> I would like to display in a lazarus application the address of a pointer.
> For this, I use :
>
> var s: string;
> p:pointer;
> [...]
> s := IntToStr(PtrInt(p))
>
>
> However, I've got a warning (hint) from the compiler :
> Conversion between ordinals and pointers is not portable
>
> What is the way to do this ?
>
>
>
> --
> Damien Gerard
> milipili at shikami.org
>
> "Intelligence is 10 million rules."
> -- Douglas Lenat
>
>
>
>
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
--
http://ik.homelinux.org/
More information about the fpc-pascal
mailing list