The IDC tool is part of the ActiveQt build system and makes it possible to turn any Qt binary into a full COM object server with only a few lines of code.
IDC 理解以下命令行参数:
| 选项 | 结果 |
|---|---|
| dll -idl idl -version x.y | 写入 IDL 为服务器 dll 到文件 idl . The type library will have version x.y. |
| dll -tlb tlb | 替换类型库在 dll with tlb |
| -v | 打印版本信息 |
| -regserver dll | 注册 COM 服务器 dll |
| -unregserver | 取消注册 COM 服务器 dll |
通常没有必要手动援引 IDC,因为
qmake
构建系统负责将要求的后期处理步骤添加到构建过程。见
ActiveQt
文档编制了解细节。