If you use Windows, if you often use Microsoft programs, or you are keen on VB programming, or you will not always come into contact with Ole and ActiveX, you know, but you know what they mean. Do you have anything? If you are interested, please let me talk to you. We first talked from OLE. First, the past OLE and Today's OLE
The initial OLE meaning refers to the link and embedded object data between the program. It provides a means of establishing a mixed document (Senior Windows 3.x users may remember the novel and joy of inserting a graphic in Word 6.0), make those Users without too many expertise can easily coordinate multiple applications to complete the establishment of mixed documents. The OLE1.0 specification established in 1991 mainly solves the communication and messaging issues between multiple applications. Microsoft hopes that third-party developers can comply with this specification so that applications on the Windows platform at the time can coordinate each other. Greater improvement of work efficiency. However, things are willing to violate, only few software developers support it. To this end, Microsoft issued a new specification in 1993. Ole2.0, which improved and enhanced the performance of all aspects on the original basis: 1. OLE Automation: A program has the ability to program another program.
2. OLE control: Small component programs, can be embedded in additional programs, providing your own proprietary features. 3. OLE Document: Improve early mixed document function, not only support simple links and embedding, but also supports functionality in bit activation, drag and drop. Powerful features make many developers to start supporting new OLE technology because Microsoft has established a new specification called COM (Component Object Model, "in OLE2.0. Second, COM specification
The COM specification is recognized as a future support and development strategy for Microsoft's Windows system, which is Microsoft's strategy for the global assembly market. This specification provides programming models and binary standards for new OLE technology, but does not specify a computer language that implements COM specification (in fact, as long as the computer language that supports pointer concepts can be used to develop COM-based programs), no application How to organize it, it is just a guiding specification. Today's OLE is attracting everyone. I think it is largely due to the development of COM specification, which guarantees all communication and messaging between applications that follow this specification and even the security and success. All OLE implementations are based on COM, some said COM is the cornerstone of OLE. The OLE component supports access to the OLE object by a set of related function sets, and each function of the interface is called a method, and the data of the object that can be accessed is named attribute. If you are familiar with VB, you will understand that you will understand. Note that the object here is not confused with instance objects of C languages. Different interface applications are different in OLE, some are called document containers, and some are called document servers, and some applications are both containers and servers. The famous example is Microsoft's world-class Office software. Word. The container is a client program, which has functions that apply and use other COM components through the interface for other programs; the server provides some features that you do through a specific interface, provide you with your own application (such as a brush program is a document server It provides features that create and edit BMP images). When you open Word, select [Object ...] item under the [Insert] menu, you can see which document servers exist in your system, the Word at this time appears as the identity of the document container. When you find that Word's menu changes to the menu of the document server program after you double-click the inserted object, you can edit the object in the current environment, which is called in the bit activation. Similar to OLE document technology, allowing an application to control the technology of another application "voluntary" functionality as OLE Automation. It is exposed to some programmable objects to other programs called Automation Servers, using and manipulating the function of the functionality provided by the Automation Server, is called an automated customer or automation controller, and some programs are both an automation server and an automation controller. For example, in VB we can create and edit an Excel worksheet (many reference books as an example), the VB here is an automation controller, and the Excel program for creating a worksheet is an automation server, but in Excel. We can use the VBA language to create a PowerPoint slide, which has become an automation controller. Using OLE automation technology, it is also possible to achieve a development and multiple utilization of software, which is also a key technique for integrated components. Whether it is an operating system or an application software, Microsoft has aware of this direction, such as starting from Windows 95, including WindowsNT4.0 operating system shell's shell's shell implementation OLE automation technology. So what is ActiveX? What is connected to OLE? Third, ACTIVEX strategy