Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Difference between .NET components and COM Components

Tags:

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?

like image 827
sivakumar Avatar asked Mar 27 '09 03:03

sivakumar


People also ask

How does .NET technology differ from COM?

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.

What is a .NET component?

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.

What is COM and DCOM in .NET with example?

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.

Is COM still used?

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.


1 Answers

.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.

like image 144
Mitch Wheat Avatar answered Nov 08 '22 09:11

Mitch Wheat