FREE Subscription to Dr. Dobb’s Digest: Same Great Content, New Digital Edition
Site Archive (Complete)
C++
Email
Print
Reprint

add to:
Del.icio.us
Digg
Google
Furl
Slashdot
Y! MyWeb
Blink
February 01, 2002

Probing the Palm OS

(Page 3 of 10)
February 2002/Probing the Palm OS/Listing 1

Listing 1: “Hello, World!” for the Palm OS

#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 —
Previous Page | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 Next Page
TOP 5 ARTICLES
No Top Articles.



MICROSITES
FEATURED TOPIC

ADDITIONAL TOPICS

INFO-LINK