将文件包含在ridl中
我正在从事的 Delphi 项目要求我创建一个非常大的类型库以添加 COM 支持。 Delphi 中的类型库/ridl 编辑器的问题在于,管理(从程序员的角度)如此大的文件变得很困难,我想沿着功能线拆分它。我遇到的问题是我看不到一种将一个 rodl 文件包含在另一个文件中的方法。我知道 importlib 函数,但我也找不到一种方法在同一项目中创建多个类型库,或从 delphi 中创建 tlb 文件。谁能给我关于如何更好地管理这个问题的想法?
The Delphi project I'm working on requires me to create a very large type library in order to add COM support. The problem is with the type library/ridl editor in Delphi is that it becomes difficult to manage (from a programmer point of view) such a large file, and I'd like to split it along functional lines. The problem I have is that I cannot see a way to include one ridl file in another. I'm aware of the importlib function, but I also cannot find a way to create more than one type library in the same project, or create a tlb file from within delphi. Can anyone give me ideas on how to better manage this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标准 IDL 有一个
include
语句,用于将其他文件拉入 TypeLibrary 编译中。 RIDL 代表REDUCED IDL,因此它可能不支持它。你必须尝试一下才能看到。Standard IDL has an
include
statement for pulling in other files into the TypeLibrary compilation. RIDL stands for REDUCED IDL, so it might not support it, though. You will have to try it and see.