> >that doesn't solve the question of how we implement a work-around so our
> >code that used to work when compiled under 3.1, that is now broken if we
> >compile under 3.5, will work under all devices again.
>
> Just grab the macro definition from your 3.1 sdk, and execute that code if
> and only if you're on < 3.5. But make sure you use the API if you're on
> 3.5 or higher, so you'll keep working in the future.
>
> Make it a routine in your own app if you want, called
> myEvtSetNullEventTick, which checks the OS version and does the right
thing.
I've been trying to implement this, but the macro reads:
#define EvtSetNullEventTick(tick) \
if (NeedNullTickCount == 0 || \
NeedNullTickCount > tick || \
NeedNullTickCount <= TimGetTicks ()) \
NeedNullTickCount = tick;
Which uses a define for NeedNullTickCount which is:
#define NeedNullTickCount ((UIGlobalsPtr)GUIGlobalsP)->needNullTickCount
Now, since in the 3.5 SDK we don't have the same access to the variables in
UIGlobalsType.. how can I implement this functionality using the 3.5 SDK for
pre-3.5 machines? I can't figure out how to access the structures.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/