I get a class from MFC CDialogEx :
class MyDialog : public CDialogEx { public: virtual void PostNcDestroy(); β¦ β¦ };
I implemented PostNcDestroy as such :
void MyDialog::PostNcDestroy() { CDialogEx::PostNcDestroy(); delete *this;
I was surprised to see that this code is compiling (using VC120 or Visual Studio 2013) and does not generate any warnings at all. Can anyone say why this is so?
Thanks.
c ++ compilation mfc
Benoit
source share