COM DCOM Question:

Download Job Interview Questions and Answers PDF

What are the purposes of AddRef, Release and QueryInterface functions?

COM DCOM Interview Question
COM DCOM Interview Question

Answer:

Query Interface method is used to get the pointer to the
interface specified in one of the parameters of this
method. Client then uses this pointer to call the method of
the component.
AddRef and Release are used to increase and decrease the
count of the instance of component loaded in memory
respectively. when the count reaches zero the component is
unloaded.

Download COM DCOM Interview Questions And Answers PDF

Previous QuestionNext Question
Which tool is used to configure the port range and protocols for DCOM communications?What is IUnknown? What methods are provided by IUnknown?