Dear All,

How can I launch a subroutine using SysAppLaunch has it own global
variable?

I wrote:
In caller:
SysAppLaunch(0, subroutineID, 0, 32768, passString, &resultP);

In callee:
static void AppEventLoop(void)
{
    do
        {
        EvtGetEvent(&event, evtWaitForever);
        if (event.eType==ctlSelectEvent &&
event.data.ctlEnter.controlID==MainReturnButton)
            break;
        if (!SysHandleEvent(&event))
            if (!MenuHandleEvent(0, &event, &error))
                if (!AppHandleEvent(&event))
                    FrmDispatchEvent(&event);
        } while (event.eType != appStopEvent);
}

In this way, I can have caller call callee and back and repeat....
However, when I try to have global variables set up in callee. Fatal
exception occurs. Can I have globals? Thank you very much.

philip



Reply via email to