HELLOAPP is the minimal Microsoft Foundation Class Library (MFC) sample. It illustrates how few lines of code are required make a window appear on the screen. HELLOAPP is even simpler than the HELLO sample: HELLOAPP does not paint anything in the main window's client area, nor does it have even a message map for the main window. HELLOAPP is nevertheless instructive in that it demonstrates the minimal overhead required for a content-less application, as opposed to, for example, a WinMain type of application developed using the Microsoft Windows® Software Development Kit.
When HELLOAPP runs, it displays the text, "Hello World!" in the task bar, and an empty application window.
Like any application written using MFC, HELLOAPP has a CWinApp-derived class. This application class provides a minimal implementation of InitInstance, constructs a frame window object (of the application-specific class CMainWindow), then calls the window's ShowWindow and UpdateWindow functions.
This sample demonstrates the following keywords:
You can find the HELLOAPP project files in the Wce\Samples\Mfc\HELLOAPP directory.
To build the HELLOAPP sample, follow the procedure described in Building the Sample Applications, selecting one or more of the following project configurations.