Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CWinApp::InitApplication

The CWinApp::InitApplication member function is obsolete in MFC.

An initialization that you would have done in InitApplication should be moved to InitInstance. If you override CWinApp::InitApplication, and you do not call the base class function, you will leak the CDocTemplate objects that were added through CWinApp::AddDocTemplate.

Header: afxwin.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.