IDC - 接口描述编译器(ActiveQt)

IDC 工具是 ActiveQt 构建系统的一部分,它能够仅凭几行代码,将任何 Qt 二进制文件转换为完整的 COM 对象服务器。

IDC 支持以下命令行参数:

选项结果
dll -idl idl -version x.y将服务器DLL的 IDL 写入文件idl。该类型库的版本号为 x.y。
dll -tlb tlb用tlb替换dll中的类型库
-v显示版本信息
-regserver dll注册 COM 服务器dll
-unregserver注销 COM 服务器DLL

通常无需手动调用 IDC,因为qmake 构建系统会自动在构建过程中添加所需的后处理步骤。详情请参阅ActiveQt文档。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.