Hi. I have a problem here. I simply pass the system
call to the original
system handler but by bypassing a custom function as
follows:

#include <PalmOS.h> // standard Palm OS Header

#define mycreator 'CHRH'

#define myresourceID 1000

Boolean MySysHandleEventTrap (EventPtr event)

{

Boolean (*oldtrap)(EventPtr);

UInt32 temp;

Boolean handled;

FtrGet(mycreator,myresourceID,&temp);

oldtrap=(Boolean (*)(EventPtr))temp;

handled=false;

if (!handled) {

handled=oldtrap(event);

}

return handled;

}



And I did as follows:

pilrc resource.rcp

m68k-palmos-gcc charhack.c -o charhack -nostartfiles

m68k-palmos-obj-res charhack.c

build-prc charhack.prc -t HACK "Char-Hack" CHRH *.grc
*.bin

All run without any error. However when I run it using
my XMaster. When I
activate this code. I got Fatal Alert:

hacks.c, Line:596, no code resource for trap [Reset].



Does anybody knows how to run this code properly? I
tried to patch another
system trap but it shows similar error. Please help.



Regards,

Victor




__________________________________________________
Do You Yahoo!?
Play now and stand a chance to win cash prizes! 
http://yahoo.com.sg/millionaire

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

Reply via email to