sailing

Everything...

[看到不好才懂得为什么好]The problem with the com contract

[from essential .net]
Com specification does not have a contract definitions.
Microsoft defined and supported two formats for COM contract description: Interface Definition Language (IDL) and type library (TLB), and these two formats are not in equivalence and also not subset of each other.
seems worse, COM contract does not include component dependencies information. You won't know a specifical dll needs what other dlls to make it work. Also, you won't be able to know the required version of the needed dll. Seeing this, I feel that .net is really cool and mature, these pain all goes away in .net.
And the last one mentioned in the chapter is that COM contract lack of extensibility, an example is when working with the Microsoft Transaction Server (MTS) (designed based on the idea of aspect-oriented programming(AOP)), developers must insert the declarative attributes, but this is only available to c++er, VB and maybe other languages hide the IDL from the programmer, so it limites this AOP based idea only in the c++. It's a totally different story in .net.

posted on 2006-04-18 14:03  乌生鱼汤  阅读(223)  评论(0编辑  收藏  举报

导航