What is COM?

前端 未结 7 777
予麋鹿
予麋鹿 2020-12-23 21:37

I searched hard, but was unable to grasp the whole idea. Can anyone tell me:

  • What COM actually is?
  • How do GUIDs work, and how are they used by COM? <
7条回答
  •  庸人自扰
    2020-12-23 22:14

    10,000 foot view:

    COM is the communication mechanism for software components. Example, you can interact with COM interfaces (COM interop in .NET) to use functionality not exposed through a common interface (.NET assembly).

    GUIDs are explained fairly decent on Wikipedia http://en.wikipedia.org/wiki/Globally_Unique_Identifier

    I always understood LIB files to be object files for the C++ linker. They contain the code for all objects in a cpp file. The compiler optimizes when it links disregarding portions of the object file that it doesn't need.

    Someone please clarify as I am sure I butchered some of this.

提交回复
热议问题