CWinApp::CWinApp

Use3 this constructor to construct a CWinApp object and store the string in the lpszAppName parameter as the application name.

Syntax

CWinApp ( LPCTSTR lpszAppName, LPCTSTR lpszHelpName = _T("") );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Parameters

lpszAppName
A null-terminated string that contains the application name that Windows CE uses. Unlike Standard MFC, this argument is not optional. Also, the resource string AFX_IDS_APP_TITLE is not used.
lpszHelpName
A null-terminated string that contains the name of the help file that Windows CE uses. This argument is optional.

Remarks

A new parameter has been added to the CWinApp constructor. In addition to providing the application's name, you can optionally provide the name of its help file as well, in the lpszHelpName parameter.

You specify a help file to be used with the application as follows.

CWinApp(_T("My App"), _T("myApp.htc"));

See Also

CWinApp Overview, CWinApp Member Functions, Application Architecture Classes