From: http://blog.163.com/junby2004@126/blog/static/9714233120091105308843/
People familiar with object-oriented programming and network programming must be familiar with ActiveX, Ole, and COM/DCOM concepts, but the relationship between them is still vague to many.
The difference between components and objects should be clarified first.
A component is a reusable module that consists of a set of processing
PHP can operate COM and DCOM object 1 under the Win32 platform. I created a DLL to compute something. Is there any way to run this DLL in PHP? 2. What does ' unsupported variant type:xxxx (0XXXXX) mean? 3. Is it possible to manipulate visual objects in PHP? 4. Can I put COM objects into session? 5. How do I capture COM errors? 6. How do I generate DLL files in PH
Thursday, March 15,200 1
By ish Singh
Introduction:
Com is sometimes referenced as common object model but Microsoft officially callit Component Object Model. microsoft also developed DCOM as an extension of COM. DCOM was designed with Distributed Computing in perspective. CORBA stands for Common Object Request Broker Architecture and developed by Object Management Group (OMG ).
the object-oriented idea is difficult to adapt to this distributed software model, so the componentized Program design idea has developed rapidly. According to the idea of componentized programming, complex applications are designed into small, single-functional component modules that can run on the same machine, it can also run on different machines. In order to implement such an application, some extremely detailed specifications are required between the build program and the build program.
In my daily work, I have seen many COM codes written by different developers. I was amazed by the many creative ways of working with COM, and some of the clever code that made COM work might not even have occurred to Microsoft. Also, seeing some mistakes repeated again and again made me frustrated. Many of these errors are related to thread and security, and this
The COM component has three basic interface classes: iunknown, iclassfactory, and idispatch.The COM specification specifies that all components and interfaces must be inherited from iunknown. iunknown contains three functions: QueryInterface, addref, and release. These three functions are extremely important, and their order cannot be changed. QueryInterface is used to query other interfaces implemented by
Recently, this registry-free COM technology was used in our work, that is, free registration of COM.
The COM component we provide will be used by multiple products, and these products may:
Installed on the same machine
The COM component used is of different versions.
In this way, if you use a common registered
in the "Big talk design mode C + + version-abstract Factory mode", we save the world attempted, leaving little regret, in this article we will give a solution--com component technology, but also pull the factory model in the application of COM component technology.The root cause of the Factory mode violation of the open-closed principle is that the object generation cannot be controlled by the data outside
People who are familiar with object-oriented programming and network programming must not be unfamiliar with the concepts of ActiveX, OLE, and com/dcom, but what is the relationship between them is rather vague for many people.Between the specific descriptions of their relationships, we will first identify the difference between the component (Component) and the object. A component is a reusable module that is a business object (Rules object) that con
Recommended reference books:Inside COM (COM technology insider)Inside OlePrinciples and Applications of COMEssential COM (the essence of COM)
====================
OMG and Microsoft put forward the following concepts: CORBA and COM, which are used for Unix while
People familiar with object-oriented programming and network programming must be familiarActiveX,OleAndCOM/DCOMThese concepts are not unfamiliar, but many people are still vague about the relationship between them.
In the relationship between them, we should first clarify the components (Component) And object (Object. A component is a reusable module that consists of a set of processing processes, data encapsulation, and user interfaces (Rules object). The component looks like an object, but d
What is com?The so-called COM (componet object model, Component Object Model) is a specification that describes how to establish dynamically changing components. This SPECIFICATION provides a way to ensure interoperability, some binary and network standards that customers and components should follow. This standard allows communication between any two components without considering whether the operating env
What is com?The so-called COM (componet object model, Component Object Model) is a specification that describes how to establish dynamically changing components. This SPECIFICATION provides a way to ensure interoperability, some binary and network standards that customers and components should follow. This standard allows communication between any two components without considering whether the operating env
Second, VC for COM programming, you must master what COM theory knowledge
I have seen a lot of people learn com, after reading a book on the principle of COM more understand, COM also so much, but just do not know how to program, I have this situation, I have experienced suc
Basic knowledge of the Component Object modelComponent-based software development is becoming more and more popular, here I am in school when I organize some of the things about COM dedicated to everyone, for beginners reference.A Component(COM) is a new software development technology developed by Microsoft for the production of software in the computer industry more in line with human behavior. Under the
Use Visual C #. Net to generate an office com external program
For the Microsoft Visual Basic. Net version in this article, see 302896. For Microsoft Visual Basic 6.0 in this article, see 238228. For Microsoft Visual C ++ 6.0 in this article, see section 230689.
Content of this task
Summary
Idtexensibility2 Interface
Onconnection
Ondisconnection
Onaddinsupdate
Onstartupcomplete and onbeginshutdown
COM programming
In-process COM servers (in-process COM server)
In-process COM server (in-process COM server) has been introduced briefly before, here, only some need to understand, understand the knowledge points, and then programming may be better; in-process servers are
The problem starts with this: I need to write a COM + to connect to different databases. Some friends might say that you should build a COM + for each database, but not in my system. We are doing an education-assisted system, the user is a school (including school teachers, students, parents), we build a database for each school, these databases are the same structure. Of course, we also have a management d
Introduction to window| Functions
COM functions built into PHP4 are quite attractive for us to develop programs in the Win32 environment, but there is still not much relevant technical documentation. This article will deal with MS office Word, Excel, and Adobe Distiller in three examples to illustrate how to use COM functions in PHP.
COM technology was presente
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.