At 4:10 PM -0500 2000/03/06, Chris Faherty wrote:
>What is the #ifdef that is used to determine which PalmOS headers are being
>used during a compile? For example, so that I know which SysBatteryInfo() to
>use.
During compilation, it's a function of the SDK against which you are building your
application (i.e. it's implicit; there is no #define version number). At run-time, use
the feature manager to check the OS version, and then call the appropriate API. It may
be difficult (perhaps even impossible) to write one version of source that compiles
under all versions of the SDK, due to the ever-evolving nature of the SDK and the Palm
OS.
Regards,
Jim Schram
Palm Incorporated
Partner Engineering
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html