No, I feel you got me wrong. Let me clarify.

I had something like this in mind:

     DetectOSVersion();
     .
     .
     .
     if (OS >= 3.5)
          WinScreenMode( ...);
     else
          ScrDisplayMode(...);

I want to compile the application under SDK 3.5, but it should be able to
execute under OS 3.0 too. Is it possible in this case?

Regards,

- Rohit






Aaron Ardiri <[EMAIL PROTECTED]> on 06/19/2001 01:21:26 PM

Please respond to "Palm Developer Forum" <[EMAIL PROTECTED]>

To:   "Palm Developer Forum" <[EMAIL PROTECTED]>
cc:    (bcc: Rohit Kanwar/LTITLVSH)

Subject:  Re: How to provide prototype of a function not present in the current
      SDK?



> In my application, I want to be able to call WinScreenMode if the OS version
is
> 3.5 or greater, and ScrDisplayMode if it is not.
>
> However, ScrDisplayMode is not defined in SDK 3.5. So, should I :
>
> (a) copy the appropriate header file (ScrDriver.h) from SDK 3.0 to one of the
> current include directories, OR,
> (b) declare the function myself in one of my header files?

  how about just renaming your call to ScrDisplayMode?

  palm just changed the name of the function.. if you were *really* lazy,
  you could probably just do this:

#define ScrDisplayMode WinDisplayMode

> How is this problem tackled in general?

  well, we read the documenation/changes and realize that the function
  name was changed and make the appropriate changes

// az
[EMAIL PROTECTED]
http://www.ardiri.com/    <--- free games!


--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/tech/support/forums/







-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to