
"Ben Hutchings" <ben.hutchings@businesswebsoftware.com> wrote in message news:A7F746377BDB7D4EA8E6623AF92F43C80C7DB2@copper.bwsint.com...
Brian Braatz <brianb@rmtg.com> wrote: [Thomas Witt wrote:]
David Abrahams wrote:
Reece Dunn <msclrhd@hotmail.com> writes:
...
It seems to me that the annoyance of mismatched lifetimes in MFC is due to its design as a thin wrapper over the Windows API at a time when the language (or at least the MS implementation) did not have exceptions. This resulted in the evils of two-phase construction. Qt seems to have managed to avoid this, despite not using exceptions, by being a more heavyweight wrapper.
That, and the fact that the MFC designers directly mapped API functions to member functions of the 1st argument type! Hence, the truly mammoth CWnd class. Jeff F