what's the difference between an activex contr

2019-07-11 13:11发布

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

is an Object an instance of a Control?

2条回答
Fickle 薄情
2楼-- · 2019-07-11 13:29

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.

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.

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

查看更多
老娘就宠你
3楼-- · 2019-07-11 13:35

Nothing in my years of ActiveX development have lead to me believe there is a difference. It's just two ways of saying the same thing.

However, your suggestion of an ActiveX object being an instance of an ActiveX control makes sense. But it strikes me as a level of semantic arguing that does nothing to improve development or communication between developers.

查看更多
登录 后发表回答