#include <windows.h>
int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPWSTR lpCmdLine, int nCmdShow)
{
MessageBox (NULL, TEXT ("Hello World"), TEXT ("Hello"), MB_OKCANCEL | MB_ICONEXCLAMATION);
return 0;
}

Your first Windows CE application running on the Motorola Q
Smartphone.
#include "windows.h"A master include file which contain other Windows header files that are necessary to use the Windows API.
int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPWSTR lpCmdLine, int nCmdShow)
WinMain() is the windows equivalent of the C
standard main().
This is the main entry point of your program.PASCAL specifies the calling convention. PASCAL
is an older term for Windows default calling convention (from the
16-bit days), also used by almost all Windows API functions.
Today it's probably more common to see STDCALL or WINAPI,
but the result will be the same.HINSTANCE hInstanceHINSTANCE hPrevInstanceNULL for
Win32 programs and can be ignored.LPWSTR lpCmdLineint nCmdShowSW_SHOW Normal.SW_HIDE Hidden.SW_SHOWNOACTIVATE Show
without activate.MessageBox (NULL, TEXT ("Hello World"), TEXT ("Hello"), MB_OKCANCEL | MB_ICONEXCLAMATION);
The MessageBox() functon is used to display simple
message
windows and retrieve basic input. This function is highly configurable
with many different
styles.
return 0;Finally the program ends with
return(0).