About destruct function in COM!
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
in a COM object,the class implement some interface can have a destruct function? when the destruct fuction is executed?
Typically, COM objects implement the
IUnknown
interface, which controls the lifetime of an object via methodsAddRef
andRelease
. This is usually the preferred method for acquiring/passing around/destroying an object, instead of some ad hoc destruction function. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo