Michel Fortin wrote:

Le 28-juin-2013 à 4:55, Rainer Schuetze <r.sagita...@gmx.de> a écrit :

> What happens if the class also implements interfaces? A reference of the interface type must do reference counting as well. So the interface must also define AddRef and Release. This is currently true for COM-interfaces derived from IUnknown, but not for other interfaces.


I would assume if an object of a reference-counted class cannot be cast to its base non-reference-counted class that it'd be the same for casting to non-reference-counted interfaces.

Reply via email to