Skip to Main Content
Palm OS Programming, 2nd Edition
book

Palm OS Programming, 2nd Edition

by Julie McKeehan, Neil Rhodes
October 2001
Intermediate to advanced content levelIntermediate to advanced
704 pages
19h 33m
English
O'Reilly Media, Inc.
Content preview from Palm OS Programming, 2nd Edition

Resources

A resource is a relocatable block marked with a 4-byte type (usually represented as four characters, like code or tSTR) and a 2-byte ID. Resources are stored in a resource database (on the desktop, these files end in the extension .prc ).

A Palm OS application is stored in the form of resources; in other words, an application is a resource database. One of the resources in this database contains code, another resource contains the application’s name, another the application’s icon, and the rest contain the forms, alerts, menus, strings, and other elements of the application. The Palm OS uses these resources directly from the storage heap (after locking them) via the Resource Manager.

The two most common tools to create Palm OS application resources are:

  • Palm’s Constructor, a graphical resource editor

  • PilRC, which compiles text descriptions of resources—available to use with the PRC-Tools tool chain or as a plug-in to CodeWarrior

We use PilRC in our examples because it’s cross-platform (works with both PRC-Tools and CodeWarrior), and it’s easy to show the textual resource declarations in this book (as opposed to many screen dumps from Constructor).

Creating Resources in PilRC

PilRC is a resource compiler that takes textual descriptions (stored in an .rcp file) of your resources and compiles them into the binary format required by a .prc file. Unlike Constructor, PilRC doesn’t allow you to visually create your resources; instead, you type in text to designate their characteristics. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Palm OS Network Programming

Palm OS Network Programming

Greg Winton
Palm Programming: The Developer's Guide

Palm Programming: The Developer's Guide

Neil Rhodes, Julie McKeehan

Publisher Resources

ISBN: 1565928563Errata Page