Hi to All
to set system font in PalmOs 4.0 I make this
Boolean SetFont(UInt16 index,MemHandle fh)
{
void *fp;
UInt32 version;
Err err;
FtrGet(sysFtrCreator,sysFtrNumROMVersion,&version);
if(version<0x03000000l&&index>6)return true;
if(fh!=0 &&MemHandleLockCount(fh)!=0 &&(fp=MemHandleLock(fh))!=NULL){
if(version<0x03000000l)
*(((UInt32 *)0x1d2)+index)=(UInt32)fp;
else
{
*((*((UInt32 **)0x1da))+index)=(UInt32)fp;
}
MemHandleUnlock(fh);
return true;
}
return false;
}
But in Palm Os 5.0 not work ,because I can't write direct to global
variable
Can somebody tell me how me it work .
Thanks to All
Vladimir
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/