| How can we use COM Components in .NET? | ||
.NET components communicate with COM using RCW (Runtime Callable Wrapper).
| ||
| Once I have developed the COM wrapper do I have to still register the COM in registry? | ||
Yes
| ||
| How can we use .NET components in COM? | ||
.NET components can not be used in straight forward way with COM. You will need to create CCW in order that COM components communicate with .NET assemblies.
| ||
| When we use windows API in .NET is it managed or unmanaged code? | ||
Windows API in .NET is unmanaged code.
| ||
| What is COM? | ||
Microsoft's COM is a technology for component software development. It is a binary standard which is language independent. DCOM is a distributed extensio of COM.
| ||
| What is Reference Counting in COM? | ||
Reference counting is a memory management technique used to count how many times an object has a pointer referring to it. The first time it is created, the reference count is set to one. When the last reference to the object is nulled, the reference count is set to zero and the object is deleted. Care must be exercised to prevent a context switch from changing the reference count at the time of deletion.
| ||
| Can you describe IUKNOWN interface in short? | ||
Every COM object supports at least one interface, the IUNKNOWN interface. All interfaces are classes derived from the base class IUnknown. Each interface supports methods access data and perform operations transparently to the programmer. For Example, IUnknown supports three methods, AddRef,Release(), and QueryInterface().
Suppose that pinterf is a pointer to an IUnknown. pinterf->AddRef() increments the referene count. pinterf->Release() decrements the reference count,deleting the object when the reference count reaches zero. pinterf->QueryInterface(IDesired,pDesired) checks to see if the current interface (IUnknown) supports another interface, IDesired, creates an instance of the object if the reference count is zero and then calls pDesired->AddRef() to increment the reference count and returns the pointer to caller. | ||
| Can you Explain what is DCOM? | ||
|






0 comments:
Post a Comment