ActiveX Control Introduction

Source: Internet
Author: User

 

  ActiveX is a new term that emerged when M $ fought against JAVA (March 1996 ), the predecessor of ActiveX technology is OLE technology, which is M $. To adapt to the development of the Internet, OLE is extended ("Activeate the Internet "), at that time, it was just to develop a small reusable component that can be quickly downloaded from the network. However, with the development of ActiveX technology, ActiveX soon became the new slogan of M $. ActiveX evolved from defining all content from WEB pages to OLE controls to defining a reusable component technology specification. ActiveX has become a concept and trend.

  ActiveX is based on OLE and COM, but the various development tools of M $ can shield many technical details that are confusing in the COM model. This section mainly discusses how to develop ActiveX controls. In fact, this is only part of AcitveX component technology. ActiveX component technology includes the following aspects:

  • Automated Server
  • Automatic Controller
  • Widget
  • COM Object
  • Document
  • Container

The currentActiveX control is equivalent to the previous OLE control or OCX. A typical control includes the user interface during design and runtime. The unique IDispatch interface defines the properties and methods of the control, the unique IConnectionPoint interface defines events that can be triggered by controls. A control can be run in a container, so it is similar to a DLL in terms of running. Since the control support is added to IE, you can use VBScript to manipulate the control on the WEB page.

In additionCOM components are Binary compatible, when the code of one of the components is modified and the connection is re-compiled, as long as the existing and used interfaces remain unchanged (Other interfaces can be added) other files using this component do not need to be recompiled. Therefore, the use of COM component technology can greatly improve software reusability. If ActiveX controls are used in the program, you can upgrade the control independently without upgrading the entire program. While providing flexibility, it will lead to performance sacrifices, but it seems that these sacrifices are nothing to do with the benefits of ActiveX for our code.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.