.NET ended COM?

zhaozj2021-02-16  50

Is .Net the end of com?

By David Chappell

With the exception of Windows NT, COM is the most important developer technology introduced by Microsoft in the past decade. COM has become ubiquitous, and it is applied today in a large majority of software written for Windows systems.

Microsoft now tells us that .NET is the next big thing. The .NET initiative includes a number of technologies, but the most important of these looks to be the .NET Framework. Including a new approach to components based on a Common Language Runtime ( CLR), a unified class library and a next-generation Web development environment called ASP , the .NET Framework will eventually have an impact on every Windows developer. Microsoft is placing an enormous bet here, and .NET really does look like the next big Thing in the windows world.

But what does this mean for COM? While the component technology in the CLR grew out of COM, it is not COM as we know it today. The CLR does not just hide IUnknown and all the rest of COM's mechanics, it completely dispenses with ................... ..

SO COM MUST BE DEAD THEN, RIGHT? NOT EXACTLY-The Truth is a bit more completed.

First, one wholly valid way to think about COM is as a programming model for creating components. To a Visual Basic programmer, this is exactly how COM looks. IUnknown and other COM details have always been hidden from Visual Basic people (who are the largest group of COM developers by far). For this audience, the switch to the CLR-based components in the .NET world should not be traumatic. Viewed as a programming model rather than as a detailed implementation, components in the .NET Framework are literally an ev-olution of COM rather than a replacement for it.Second, Microsoft realizes that lots of COM code exists in the world. Accordingly, interoperability between components built using the .NET Framework and COM is built into the CLR. A .NET Framework component can look like a COM object to COM clients, while a COM object can look like a .NET Framework component to a client built using the CLR. Neither of these things requires any significant work for developers, and I expect intero Peration to Be Both Easy and Common.

Third, even applications de-veloped using the .NET Framework will exploit some parts of COM. In particular, the CLR does not attempt to replicate any of the functionality of COM . .NET Framework applications that need transactions, object pooling and other COM services Will Be Deployed Wrapped In Comss. Understanding How CoM Works Will Still Be important in a .net world.

Finally, purely COM-based development is not dead. The .NET Framework is not scheduled to ship for some time yet, and so Windows development will continue in its current COM-oriented vein for quite a while. And even after the .NET Framework is available, some projects will likely still use COM rather than .NET. The execution model imposed by the CLR represents real progress for many kinds of applications, but it is not the right answer for everything. some software, especially system-level code, will still be developed using COM.So does the arrival of .NET mean the end of COM? In some ways, the answer is yes. Building brand-new apps from scratch using the .NET Framework will not require any knowledge of today's COM That Technology. That Technology SIMPLY ISN 'THOUGH, WHO WILL CRY BIG TEARS AT The wish's details again.

In other important ways, however, COM will go on. As a programming model, as a way to interoperate with existing code, as a technology for transactions and other services, and even as an explicit development foundation, it will definitely get used. COM Is Not De DEAD.

David Chappell Is Principal At Chappell & Associates, An Education and Consulting Firm Focused on Enterprise Software Technologies. He Can Be Reached Via E-mail at david@davidchappell.com.

转载请注明原文地址:https://www.9cbs.com/read-27811.html

New Post(0)