< Programming for Palm OS < C
#include <PalmOS.h> UInt32 PilotMain( UInt16 cmd, void *cmdPBP, UInt16 launchFlags) { EventType event; char *message = "Hello, world!"; if ( sysAppLaunchCmdNormalLaunch == cmd) { WinDrawChars( message, StrLen(message), 55, 74 ); do { EvtGetEvent( &event, evtWaitForever); SysHandleEvent( &event); } while (event.eType != appStopEvent); } return 0; }
This article is issued from
Wikibooks.
The text is licensed under Creative
Commons - Attribution - Sharealike.
Additional terms may apply for the media files.