View Single Post
  #10  
Old 08-24-2014, 14:36
deepzero's Avatar
deepzero deepzero is offline
VIP
 
Join Date: Mar 2010
Location: Germany
Posts: 313
Rept. Given: 115
Rept. Rcvd 65 Times in 43 Posts
Thanks Given: 196
Thanks Rcvd at 228 Times in 97 Posts
deepzero Reputation: 65
you should never call a destructor explicitly! pull the destructor code into another method, if you think you do.


in the case of 'class MyClass : public CWin'

both ~MyCLass() and ~CWin() destructor will be invoked by the compiler (~MyCLass first). There is nothing you can do about it, you cant decide.
Reply With Quote
The Following User Gave Reputation+1 to deepzero For This Useful Post:
BlackWhite (08-25-2014)