Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究一个 DLL,我希望我导出的函数只能按序号而不是按名称导出。
这可能吗 ?如果是,我想知道如何完成。
让 Delphi 标记导出函数的唯一方法是使用exports指令。并且 Delphi 将始终为您导出的每个函数在 PE 导出表中添加一个命名条目。但是很容易给这个函数起个名字。
exports
library Project32; procedure Foo; begin end; exports Foo index 1 name ''; begin end.