wiley-logo-sm.gif
> wiley.com

Samples

This page is a repository for sample code and applications from Palm OS Programming Bible, Second Edition. Sample code in each archive is provided for Metrowerks CodeWarrior 8 (Windows version only), Falch.net DeveloperStudio, and the PRC-Tools.

Note: I would like to apologize to developers who use CodeWarrior on the Mac OS platform. I don't own a Mac, so I haven't been able to convert the Windows CodeWarrior projects into their Mac equivalents. The source code itself should still provide a useful example for you to follow, but you need to create your own CodeWarrior project from scratch and add the sample code files to the project manually.

Samples on this page are organized by the chapters in which they appear, with the exception of the Librarian application. Because it is a complete application, Librarian is used throughout the book to demonstrate various Palm OS programming techniques. Therefore, Librarian is in its own section following the chapter-specific examples.

Samples are provided in compressed Zip archives. You can expand these archives with a variety of tools, including WinZip , WinRAR and StuffIt Expander.

Chapter 4

Hello World 1 (20.7 KB)
Hello World 1 is a bare minimum Palm OS application.
Hello World 2 (32.6 KB)
Hello World 2 adds user interaction and memory management to the Hello World 1 sample.

Chapter 7

MenuDefs.r (297 bytes)
A file that tells the CodeWarrior Rez tool how to build menu resources.

Chapter 10

Color Test (48.5 KB)
A sample application that demonstrates Palm OS color drawing APIs.
FillPatterns.h (730 bytes)
A header file containing fill patterns suitable for use with WinSetPattern and other Palm OS drawing routines.

Chapter 12

Table Example (28.0 KB)
A sample application that demonstrates Palm OS table APIs.

Chapter 15

VFS Test (71.1 KB)
A sample application that demonstrates Virtual File System (VFS) APIs.

Chapter 17

Serial Chat (34.3 KB)
A sample application that demonstrates serial communications.

Chapter 19

Formal Greeting Generator (4.47 KB)
A sample Web Clipping Application (WCA) that returns formal greetings based on both user input and the current time of day.
Time Check (1.2 KB)
A sample WCA that returns the time of day at the palmosbible.com server.
Hello WCA (567 bytes)
A simple "Hello, World" WCA.

Chapter 21

Librarian Conduit (1.03 MB)
A conduit for the Librarian application that syncs Librarian data with a tab-delimited text file on the desktop.

Librarian

Librarian (215 KB)
A complete application for keeping track of a book collection. Librarian uses many APIs that span the width of the Palm OS.

[ Home ]

[ Samples ]

[ Errata ]

[ About the Author ]

[ Links ]