In fact, this method is inherently unscientific. DCOM itself is a form of COM, but since we hear that com generally treats it as a locally executed COM, DCOM, of course, is the Distributed COM, which is executed on another computer on the network. the Difference and connection between COM and DCOM were born.
Differences:
COM has two forms: Dynamic Connection Library and executable program, but DCOM must be an executable program. because DCOM cannot run in the memory space of the client program, it cannot be a dynamic Connection Library.
COM (in the form of dynamic Connection Library) can be used without RPC communication, while DCOM must use RPC Remote Call.
COM (in the form of dynamic Connection Library) is in the same memory space with the customer, and the call speed is fast. DCOM is only one thousandth of COM.
The security of COM (in the form of dynamic Connection Library) is not high. The client program can cause errors to the service COM and the security of DCOM is high, because the memory space shared by COM and the client program is also caused.
The com program configuration is simple and the DCOM configuration is complicated. After all, DCOM involves network and security.
Contact:
The customer program does not need to know the existence form of COM, and has a unified interface call method. The customer program may not even know the location of the COM object, and may be on the same computer, it can also be on the other side of half a earth;
Because DCOM is a form of existence of COM, it has many things in common.