加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

delphi – 如果我只有类/ VMT地址,如何获取类的单元名称

发布时间:2020-12-15 04:34:03 所属栏目:大数据 来源:网络整理
导读:当我读到 here时, the VMT also contains a number of “magic” fields to support features such as parent class link,instance size,class name,dynamic method table,published methods table,published fields table,RTTI table, initialization table
当我读到 here时,

the VMT also contains a number of “magic” fields to support features
such as parent class link,instance size,class name,dynamic method
table,published methods table,published fields table,RTTI table,
initialization table for magic fields,the deprecated OLE Automation
dispatch table and implemented interfaces table

看起来VMT不包含包含定义类的单元名称的字段.是否涉及一些“编译魔术”?

解决方法

我不明白为什么VMT应该参与其中. TObject已经公开了一个类函数UnitName.

System.TObject.UnitName

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读