I'm trying to automate a build, but the instructions require openning an OCX in Borland C++ Builder and saving it as a TLB. How can I reproduce this process through the command line?
Kholdstare
问问题
1934 次
3 回答
1
使用 Delphi/C++Builder 2009,您可以使用 TLIBIMP 和 GENTLB 命令行工具:
- 1.
tlibimp -I comdlg32.ocx -Ftcomdlg32
这会生成一个comdlg32.ridl文件(RIDL是微软IDL的变种)。 - 2.
gentlb comdlg32.ridl
这将生成 comdlg32.tlb 文件。
于 2009-05-05T15:34:26.370 回答
0
如果我记得,您可以使用 tlbimport。我承认这已经很久了,而且 tlbimport 可能是 VC++ redist 的一部分。
于 2009-01-13T21:07:03.163 回答
0
这不是最好的解决方案,但它是我能找到的唯一一个可以自动工作的解决方案。我下载了一个名为 AutoHotkey 的免费程序来模拟在 BCB5 中打开 ocx 文件的击键,选中“标志”选项卡下的“可以创建”复选框并将文件保存为 tlb。它也有助于解决烦人的翻译警告!
于 2009-01-14T17:01:55.670 回答