The difference between traditional DLL and COM DLL

前端 未结 8 1312
半阙折子戏
半阙折子戏 2021-01-30 03:23

I am currently studying COM. I found that COM DLL is kind of built upon the traditional DLL infrastructure. When we build COM DLLs, we still rely on the traditional DLL export m

8条回答
  •  终归单人心
    2021-01-30 04:09

    I think by reading the first chapter of Essential COM by Don Box linked here, you'll have a very good idea of why we use COMs.

    To summarize: COM ensures compatibility at the binary level, no matter what language you used, or what version compiler you used. It is not about the "OOP" thing, you sure could expose C++ class from a DLL, but they are not "binary compatible."

提交回复
热议问题