
CCmdTarget && delete && CList
Hi,
I have an Ole class which I have inherited from CCmdTarget, to my
surprise the destructor is protected, and I can't call it. :( Instead
of using delete, I'm now using OnFinalRelease. Is this correct??
I'm also trying to have a CList of these objects in another class, and
here is the problem.....
CList calls the destructor automatically.... and its still protected.
Is it not possible to have a CList of objects inherited from
CCmdTarget?
Geir Arne Trillhus