I got the function from http://www.sergem.net/fontedit/devinfo.html
// Sets current font from locked pointer
void SetFont(UInt16 index, UInt32 ptr, UInt32 version)
{
     if(version<0x03000000l)
         *(((UInt32 *)0x1d2)+index)=ptr;
     else
         *((*((UInt32 **)0x1da))+index)=ptr;
}

when I use the function to OS5 device, it will crash.
0x1d2, 0x1da is low memory, we can't access low memory directly in OS5 ???
If not, how to implement?

Thanks!




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

Reply via email to