Difference between COM and .NET component ?

Answer Posted / rajeev

COM vs .NET Component

COM=Object based communication
.NET Component=Interface based communication

COM=Garbage Collector to manage memory
.NET Component=Reference count will be used to manage memory

COM=Type Standard objects
.NET Component=Binary Standard objects

COM=Objects are created by normal new operator
.NET Component=Objects are created by coCreateInstance

COM=Exceptions will be returned
.NET Component=HRESULT will be returned

COM=Object info resides in assembly files
.NET Component=Object info resides in Type library

Is This Answer Correct ?    7 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define integrity?

3139


Is com+ dead?

526


What is jit activation?

499


Define jit activation?

3215


Define transaction atomicity?

3100






What are Interop Services?

539


Explain what are wrapper classes?

520


Explain the disadvantages of com components?

2761


What is ccw?

3184


Explain disadvantages of com components?

513


how to register dll in COM / COM+ application

7000


How to register com+ services?

523


What is manageability?

550


Explain how does you handle this com components developed in other programming languages in .net?

429


How to make a net component talk to a com component?

448