What is the Difference between .NET components and COM Components, sometimes we use .NET Components to include in our projects and sometimes we include COM reference. What is the idea behind?
NET provides a virtual machine, an extensive code library and a Java-like bytecode (Intermediate Language) into which your programs are compiled. COM is simply a binary interoperability standard for creating objects and allowing them to interact with each other.
The two major components of . NET Framework are the Common Language Runtime (CLR) and the . NET Framework Class Library. The CLR is the execution engine that handles running applications. The Class Library provides a set of APIs and types for common functionality.
COM is a set of components tools which are executed on client-side environment. DCOM runs on the given server. COM objects require installation on machine where it is to be used. It requires installation somewhere on the same network. COM is an interface standard.
COM is still in wide use today, although it's considered an older cousin to the . NET Framework. Many technologies you rely on, and use with PowerShell, are still based on COM.
.NET components are managed code (memory disposal is done for you)
COM is an interface standard for software components. COM components are unmanaged code (memory disposal is performed using reference counting).
From here:
How are COM and .NET related?
COM and .NET are complementary development technologies. The .NET Common Language Runtime provides bi-directional, transparent integration with COM. This means that COM and .NET applications and components can use functionality from each system. This protects your existing investments in COM applications while allowing you to take advantage of .NET at a controlled pace. COM and .NET can achieve similar results. The .NET Framework provides developers with a significant number of benefits including a more robust, evidence-based security model, automatic memory management and native Web services support. For new development, Microsoft recommends .NET as a preferred technology because of its powerful managed runtime environment and services.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With