Deplhi Import Component - Type Library vs ActiveX

 ̄綄美尐妖づ 提交于 2019-12-11 03:33:02

问题


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.

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


回答1:


Delphi Help System says:

"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."

"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."

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.



来源:https://stackoverflow.com/questions/27064693/deplhi-import-component-type-library-vs-activex

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!