activex控件和activex对象之间有什么区别? [英] what's the difference between an activex control and an activex object?

查看:369
本文介绍了activex控件和activex对象之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ActiveX控件 - 小程序构建块 - 可用于创建通过Web浏览器在Internet上运行的分布式应用程序,例如用于收集数据,查看某些类型的文件和显示动画的定制应用程序。 (wikipedia)

"ActiveX controls — small program building blocks — can serve to create distributed applications that work over the Internet through web browsers. Examples include customized applications for gathering data, viewing certain kinds of files, and displaying animation." (wikipedia)

是一个Object对象的实例?

is an Object an instance of a Control?

推荐答案

p> MS术语不清楚,特别是因为ActiveX是一个营销术语而不是技术术语。通常,ActiveX可以替换为COM,以给予更技术上可理解的意义。

The MS terminology is unclear, especially since ActiveX is more a marketing term than a technical one. Often, "ActiveX" can be replaced with "COM" to give a more technically comprehensible meaning.

ActiveX / COM中的所有代码最终都是暴露一个或多个接口的对象。因此,ActiveX / COM控件是对象,以及其他可插入的COM类型,例如Explorer扩展,浏览器帮助对象等。

All code in ActiveX/COM ultimately is an object that exposes one or more interfaces. So, ActiveX/COM controls are objects, along with other pluggable COM types, such as Explorer Extensions, Browser Helper Objects etc.

对于被认为是ActiveX控件,它必须实现控件嵌入容器所需的一组接口。 IViewObject,IOleControl,IOleControlSite等。

For an object to be considered an ActiveX control, it must implement the set of interfaces needed for the control to be embedded in a container. IViewObject, IOleControl, IOleControlSite etc..

这篇关于activex控件和activex对象之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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