COM is not C++, and for good reason. COM objects are somewhat more complicated then their C++ brethren. Most of this complication is necessary because of network considerations. There are four basic factors dictating the design of COM:
l C++ objects always run in the same process space. COM objects can run across processes or across computers.
l COM methods can be called across a network.
l C++ method names must be unique in a given process space. COM object names must be unique throughout the world.
l COM servers may be written in a variety of different languages and on entirely different operating systems, while C++ objects arealways written in C++.
Let's look at what these differences between COM and C++ mean to you as a programmer.
0 comments:
Post a Comment