Yes I have looked at the docs and I know how to check the ROMS and such, but
that was not my question.
I clearly said:
"I know I get a runtime error if I try and call it and I could go and lookup
every function every time that I use it, but it seems like the compiler
should be able to tell me."
When you are new to the system and starting programming with 3.5, then you
have to check every single function that you use it makes the system hard to
use. There SHOULD be a compiler flag that would give me warnings if my
target was one OS and I called something that was introduced later in a
later OS.
Either that or something in the SDK that lets be use a -D on the compiler
and then blocks out the headers that would not work. Here is a basic
framework of how others have handled it in other systems.
/* if 4.0, then 3.5 too, this is a cascade */
#ifdef TARGETOS40
#define TARGETOS35
#endif
#ifdef TARGETOS35
#define TARGETOS31
#endif
/* nested declarations */
#ifdef TARGETOS31
void function31();
/* indenting just for show */
#ifdef TARGETOS35
void function35_A()
void function35_B()
#ifdef TARGETOS40
void function40_A()
void function40_A()
#endif
#endif
#endif
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
Burmeister
Sent: Tuesday, July 10, 2001 11:36 AM
To: Palm Developer Forum
Subject: RE: How do you know when you are using 3.5 calls?
> From: James
>
> ... if I am using SDK 4.0 and I am developing for 3.0
> and above how can I tell that I am calling
> function that is not in the 3.0 OS?
>
Have you looked at the "Palm OS R Programmer's API Reference"? (See the
"Compatibility Guide".) It clearly describes when (under which OS version)
each function was introduced. At runtime, you can check the ROM version,
and you can also test for feature sets. Then, don't call any function that
isn't supported.
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/