Deplhi导入组件 - 类型库与ActiveX [英] Deplhi Import Component - Type Library vs ActiveX

查看:368
本文介绍了Deplhi导入组件 - 类型库与ActiveX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Delphi中使用Microsoft Terminal Services Active Client。我看到我可以通过导入ActiveX控件或导入类型库创建COM * .tlb文件。它们似乎都给出了相同的* .tlb源文件。

I am trying to use the "Microsoft Terminal Services Active Client" in Delphi. I see that I can create the COM *.tlb file either via "Import ActiveX control" or "Import Type Library". They both seem to give the same *.tlb source file.

两种方法之间有区别。 (长时间Delphi用户,但新到COM)。

Is there a difference between the two approaches. (Long time Delphi user, but new to COM).

推荐答案

Delphi帮助系统说:

Delphi Help System says:

对话框显示在系统上注册的类型库,以便您可以将它们添加到您的项目。如果注册的类型库包含可创建的CoClasses,此对话框允许您在组件选项板中安装代表它们的组件。

"The Import Type Library dialog box displays the type libraries registered on your system so you can add them to your projects. If the registered type libraries contain creatable CoClasses, this dialog allows you to install components representing them on the component palette. You can generate declarations in a .pas file that let you use these types as though they were native objects."

导入ActiveX控件对话框显示在系统上注册的ActiveX控件,因此您可以将它们添加到您可以在源文件中声明控件,以便您可以使用任何这些控件,就像它是一个本机对象。

"The Import ActiveX Control dialog displays the ActiveX controls registered on your system so you can add them to your projects. You can declare the controls in source files so that you can use any of these controls as though it were a native object."

导入ActiveX控件只能从控件,类型库用于库(没有可视化控件),但如果它们暴露了可视控件,它们也会安装到IDE中。

Import ActiveX Control is only from controls, Type library is for libraries (no visual ones) but if they exposes visual controls, they are also installed into you IDE.

这篇关于Deplhi导入组件 - 类型库与ActiveX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆