CWinApp::InitApplication

This method is called by the implementation of WinMain that the framework provides. Override InitApplication to implement one-time initialization such as Windows CE class registration.

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

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual BOOL InitApplication( );

See Also

CWinApp::InitInstance