View Single Post
  #8  
Old 08-24-2014, 14:36
deepzero's Avatar
deepzero deepzero is offline
VIP
 
Join Date: Mar 2010
Location: Germany
Posts: 300
Rept. Given: 111
Rept. Rcvd 64 Times in 42 Posts
Thanks Given: 178
Thanks Rcvd at 216 Times in 92 Posts
deepzero Reputation: 64
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)