We are using CW9 For Palm OS5 to create a new ARMlet Stationery project. We got the following problem
ARMlet* lpARMlet;
unsigned long ARMlet::Run() { // draw randomly-colored pixels on the screen
lpARMlet=this;//this line caused error
return 0;//DreamNESMain(); }
when we added lpARMlet=this, it caused a reset, but remove this line it was fine.
What's the problem here, anything I did wrong?
CodeWarrior for Palm OS V9.0's ARMlet tools don't support read/write global variables without a lot of hacking. The tools and runtime library in the soon-to-be-released 9.2 update actually do support global variables that you can modify at runtime; you'd probably ought to wait for a few days and get the update to continue. The update also provides PACEInterfaceLib, a C-function version of the PACEInterface classes.
-- Ben Combee
Senior Software Developer, CodeWarrior tools
Metrowerks Corporation (a Motorola Company)
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
