Home > DeveloperSection > Interviews > Can you explain IUnknown interface used in COM ?

Posted on    March-28-2011 8:57 AM

 Visual C++ Visual C++ 
 1 Answer(s)
  1523  View(s)
Rate this:

Amit Singh

Total Post:565

Posted on    March-28-2011 12:00 AM

COM is an acronym for Component Object Model. COM is a way of building objects that is independent of any programming language. 
Every COM object implements an interface named IUnknown. It contains three methods:
-         QueryInterface: Returns a pointer to another interface
-         AddRef:  Increments the objects reference count
-         Release: Decrements the objects reference count.

Don't want to miss updates? Please click the below button!

Follow MindStick