#include <PalmOS.h>
UInt32 PilotMain(UInt16 cmd, void* cmdPBP, UInt16 launchFlags)
{
if (cmd == sysAppLaunchCmdNormalLaunch)
{
EventType event;
WinDrawChars("Hello, world!", 13, 0, 0);
do
{
EvtGetEvent(&event, evtWaitForever);
SysHandleEvent(&event);
}
while (event.eType != appStopEvent);
}
return errNone;
}
End of Listing