| Back to Questions Page |
| Question |
What happens when we instantiate a COM component ? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Hemanth Desai |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
When instantiating a COM object, Visual Basic calls an API
function named CoCreateInstance() behind the scenes to
create the object for you.  |
0 | Ravi Raj Chellueri |
| |
| |
| Question |
Difference between COM and .NET component ? |
Rank |
Answer Posted By |
|
Interview Question Submitted By :: Hemanth Desai |
|
I also faced this Question!! |
© ALL Interview .com |
| Answer |
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  |
0 | Rajeev |
| |
| |
|
| |
|
Back to Questions Page |