It is the responsibility of the server to call AddRef() after QueryInterface() or CreateInstance() call. In simple words server calls this function before giving the instance to client. Client never calls this function as management of reference count is a duty of server. There is another reason why it is not called by client. It may happen that client may intentionally or unintentionally call this which creates mess in the server object management. Client is only responsible for releasing the object by Release() call. AddRef() is always called inside COM server.
About our authors: Team EQA
You have viewed 1 page out of 67. Your COM/DCOM learning is 0.00% complete. Login to check your learning progress.
Questions index C Questions C++ Questions Win32 MFC COM/DCOM DLL Questions
Compilers & Editors
Download Visual Studio Download XCode Download Visual Studio Code Android studio install sdk Eclipse installer Best C compilers IDEs
Development system setup
Windows media creation tool MSDN subscription Ubuntu virtualbox
New updated posts
Why learn C? Draw on printer Free alt softwares