将文件包含在ridl中

发布于 2024-09-13 12:28:47 字数 230 浏览 3 评论 0原文

我正在从事的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万劫不复 2024-09-20 12:28:47

标准 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文