我正在尝试通过使用 createoleobject 在 delphi 应用程序中加载 Thomson Reuters com 插件,但无法找到 com 插件。
for i := 1 to Application.comaddins.Count do
begin
if (Application.comaddins[i].Name = addInReference) then
begin
Application.comaddins[i].installed := false;
Application.comaddins[i].installed := true;
end;
end;
我现在收到一个错误,即 application.comaddins[i].name 不是插件正常工作的有效成员。我在访问 comaddins 对象时需要帮助,以确保在 delphi 中激活了 com 插件。
提前致谢。