RTTI on objects in Delphi -


i'm trying parse objects xml in delphi, read calling object's classinfo method rtti info.

the thing is, apparently works tpersistent objects. otherwise, have add compiler directive {$m+} source code compiler generate rtti info.

so happily added directive, find that, if did return classinfo call (it used return nil), cannot retrieve class' properties, fields or methods it. it's created object empty.

any idea missing here? thanks!

did put properties , methods published section?

besides that, 'classical' rtti ($typeinfo on) information on properties, not on methods. need 'extended' rtti ($methodinfo on) those.

good starting point extended rtti: david glassborow on extended rtti

(who believe minute finished writing code uses extended rtti , decided browse stack overflow little:))


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -