如何在Delphi XE中自动生成*_TLB.pas?
我们已将项目更新为 Delphi XE。有 .ridl 文件而不是 .tlb。但是 *_TLB.pas 文件又如何呢?如何将 .ridl 文件中的更改迁移到 *_TLB.pas 文件?
Delphi XE 根本不修改这个文件。
We have been updated our project to Delphi XE. There's .ridl files instead .tlb. But what's about *_TLB.pas files? How to migrate changes in .ridl file to *_TLB.pas file?
Delphi XE doesn't modify this file at all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
打开类型库编辑器并按刷新实施按钮。
有关详细信息,请参阅帮助。
更新:
确保.ridl 文件位于项目管理器中。
在 IDE 中:视图|类型库现在应该已启用。
从这里打开类型库编辑器。
_tlb.pas 文件不应在任何编辑器窗口中打开。
按刷新实施应该更新 _tlb.pas 文件。
(有时首先需要保存 .ridl 按钮)
有时我必须保存项目,关闭并重新启动 IDE,然后才能获得正确的信息。
有时您必须在执行所有这些操作之前取消注册库。
Open the type library editor and press the refresh implementation button.
See the help for more information.
Update :
Make sure the .ridl file is in the project manager.
From the IDE : View|Type library should now be enabled.
Open the type library editor from here.
The _tlb.pas file should not be opened in any editor window.
Pressing the refresh implementation should update the _tlb.pas file.
(Sometimes the save .ridl button is needed first)
At occations I have to save the project, close and restart the IDE before correct information is there.
Sometimes you must unregister the library before doing all this.