且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

组件对象模型

更新时间:2023-12-02 22:22:28

  1. 是的。

  2. COM仍然是核心的Windows的工作方式。无论C风格的API是不够的,COM是下一步揭露的对象模型。是的,商店的应用程序是COM服务器。

  3. COM原产code,它增加了很少的开销,是从几乎被移植到Windows中的任何语言​​的使用。

  4. 参观amazon.com搜索图书,阅读评论。

这是没有必要再有知道的COM编写在Windows上运行的程序。大量的工作已完成把它包起来,使之更友好。语言突起商店语言运行时有显着的,还有的基础COM code可见极少数的痕迹。它贬谪到一个状态,它是堪比学习汇编语言编程。

My question is directed towards developers who are familiar with COM. I am currently writing my college thesis which is partially about Microsoft COM.

  1. is COM still used today for purposes besides legacy code
  2. everyone says COM is obsolete. Why is the new Windows Runtime an 'enhanced' COM based API? What is meant by the word 'enhanced'
  3. are there any significant upsides to COM compared to .NET or vice versa
  4. any recommendations where to learn more about COM and .NET Interop and how exactly does it work

Please support your answers with facts as much as possible! Thank you.

  1. Yes.

  2. COM is still core to the way Windows works. Wherever a C-style api won't suffice, COM is the next step to expose an object model. And yes, Store apps are COM servers.

  3. COM is native code, it adds very little overhead and is usable from practically any language that was ported to Windows.

  4. Visit amazon.com to search for books, read the reviews.

It is not essential anymore to have to know COM to write programs that run on Windows. Lots of work was done to wrap it and make it friendlier. The language projections in Store language runtimes are notable, there are very few traces of the underlying COM code visible. Relegating it to a status that's comparable to learning assembly language programming.