Whoops.. my bad.. it just failed under 2.0.. wonder if there is something
else that needs to be done for those devices? I swear the macro worked on
those devices, but I've slept since then, so no telling.. could be my
imagination.. any thoughts on 2.0? Perhaps its a different address?
----------
Bradly J. Barton - [EMAIL PROTECTED]
Jenies Technologies Incorporated
(972) 602-1835
http://www.JTI.net
http://HandAble.com
----- Original Message -----
From: "Bradly J. Barton" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2001 4:00 PM
Subject: Re: EvtSetNullEvent
> From: "David Fedor" <[EMAIL PROTECTED]>
> > For expediency, use a 3.1 sdk and create a tiny app that finds the
> location
> > of NeedNullTickCount. Then make a pointer in your real app, set it to
be
> > the absolute reference to that global location, and make sure you only
> > follow that pointer if <= 3.5!
> >
> > I bet the location will be between 0x180 and 0x200 or so.
>
> It is... I've gotten this to work, compiled under the 3.5 SDK and it runs
> under OS 2, 3, and 3.5 under POSE (although POSE does complain about
> accessing the structures directly when its a pre-3.5 device.. but I
suppose
> I can live with that, since I know why its happening):
>
> Boolean hasMinRomVersion(DWord requiredVersion)
> {
> DWord romVersion;
>
> FtrGet(sysFtrCreator, sysFtrNumROMVersion, &romVersion);
> if (romVersion < requiredVersion)
> return false;
> return true;
> }
>
> void NeedANilEventAfter(long ticks)
> {
> if (hasMinRomVersion(0x03503000))
> {
> EvtSetNullEventTick(ticks);
> }
> else
> {
> long *tickptr = (long *)0x1D2;
> *tickptr = ticks;
> }
> }
>
>
>
> --
> 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/