Hello All-
I'm trying to access functions in the String manager API and get a major
failure at simulation time within POSE. I'm running Code Warrior R6 with
version 3.0a6 of POSE. Here is my simplified code segment:
#include <Pilot.h>
#include <StringMgr.h>
static Boolean TimerFormHandleEvent(EventPtr event)
{
CharPtr strptr, dbgptr;
// other variable declarations here
...
strptr = "00:00.0";
dbgptr = "12:34.5";
// other case statement code here for handling the various events on the
form...
switch(event->data.ctlSelect.controlID) {
case TimerFormRecalcButton:
StrCopy(dbgptr, srcptr);
break;
}
When I am running and get to the string copy line, I get a failure with a
dialog window (with no error description thank you very much) and the Close
button. The Error dialog is just an empty window with a couple of ASCII
graphic (garbage) characters in it.
I've got the prototype properly included (right?). Is there something else
I need to do from within CW to access functions of the string manager?
Regards
John
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/