COM objects !!!

Started by
0 comments, last by HDATA 21 years, 9 months ago
Hello everybodyyyyyyyy, NICE TO SEE ALL OF YOUUU, AGAIN !!! I came back to ask other CRAZY question, again Ok, i knew that for learning using of COM object, i have to read many of documentations ... But, i BEG you !!! Please, please tell me, what is QueryInterface !!! What is AddRef ??? I GOT CONFUSED Please tell me what excatly occures when i use thease functions ??? Please help me !!! Thanks in advance !
Advertisement
QueryInterface allows you to attempt to retrieve a non-IUnknown interface from a COM-object. Basically, it allows you to ask any IUnknown (thus, any COM-object) what else it can do.

AddRef adds a reference-count - used to manage the lifetime of COM objects. The reference count basically tracks how many objects are using this object - when it falls to 0, that means nobody is using the object, and it can delete itself.
It's only funny 'till someone gets hurt.And then it's just hilarious.Unless it's you.

This topic is closed to new replies.

Advertisement