Ben Taylor asked the interesting question:

> does anyone have ideas on how to generate (at runtime)
> a list of procedure names in an object?

The only way to achive this is to pull the VMT apart by grabbing the
VMT.MethodTable pointer and doing some funky pointer and string processing
to get the list of addresses and method names.

The simplest way to get into this sort of stuff is grab a copy of Ray
Lischner's "Secret's of Delphi 2" as this provides full documentation of
the VMT format and a utility unit that has all the VMT structures defined.
There are updates available on Ray's web site that get the utility code
upto date with Delphi 5 too, so its not just for Delphi 2 8-).

Otherwise I would suggest having a look at the structures that Borland
have documented in the System.pas unit and working from there.

Cheers, Max.


---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to