That is the intention, I want the compiler to flag an error, so that I can later correct it in the code. Otherwise, it only fails when I happen to use that function, in an emulator of that version, which can take weeks to find. LionScribe
"Dave Lippincott" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'd write the option as part of the compilied code, not handled by the > precompilier. You can include TblSetSelection in the same code that is > executed on Palm OS5 and OS2 just as long as you don't make the call on OS2. > > // place this in your app startup code > CurrentOSVersion = GetTheOSVersion(...) > > // Later... > if(CurrentOSVersion >= 4) > TblSetSelection (...) > else > // my funky set selection code > > > ----- Original Message ----- > From: "LionScribe" <[EMAIL PROTECTED]> > Newsgroups: palm-dev-forum > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Sent: Thursday, April 29, 2004 8:47 PM > Subject: Making sure your programs works with older OS > > > > Is there any way, at compile time, to verify that you are using > implemented > > functions for your desired OS. For example, can I make sure that > > TblSetSelection is not used if I am trying to be compatible with OS 3.5, > and > > that compile fails if it's used. > > I understand, that you can try using older include files, but that > > complicates things. > > If there is no way, I would suggest using a simple define header, > something > > like this; > > > > #define MIN_COMPATIBLE_OS 3.5 > > #if (MIN_COMPATIBLE_OS < 4) > > #define TblSetSelection TblSetSelectionNeedsOS4 > > #endif > > > > Any other suggestions? > > LionScribe > > > > > > > > > -------------------------------------------------------------------------- -- > ---- > > > > > > > > -- > > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
