CCmdTarget && delete && CList 
Author Message
 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



Sat, 30 Dec 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ***&&&>>> HELP --- CXL --- HELP <<<&&&****

2. Linker error 2001 @&(#&@#&$@

3. Linker error 2001 @&(#&@#&$@

4. CString, char && delete

5. /clr & edit &continue

6. Preprocessor Question: #if A && B

7. CONFERENCE: ACCU C&C++ Developers Forum, Oxford, UK, 18&19 July 1997

8. && during debugging (QuickWatch), unexpected behaviour

9. Combination&&arrange in order

10. Events && Delegates

11. Why no ||= and &&=

12. AVOID KERIGHAN &amp; RITCHIE'S BOOK

 

 
Powered by phpBB® Forum Software