The following 68K program only shows a blank screen when run on Cobalt simulator. If I only initialize one form, it is displayed correctly (when EvtGetEvent is first called). Any suggestions?


UInt32 PilotMain( UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { if (cmd != sysAppLaunchCmdNormalLaunch) return 0; FormType *frmP = FrmInitForm(MainForm); FormType *otrP = FrmInitForm(AboutForm); FrmSetEventHandler(frmP, MainFormHandleEvent); FrmSetEventHandler(otrP, MainFormHandleEvent); FrmSetActiveForm(frmP); FrmDrawForm(frmP); // Doesn't matter if this line is present or not EventType event; do { EvtGetEvent(&event, evtWaitForever); if (! SysHandleEvent(&event)) FrmDispatchEvent(&event); } while (event.eType != appStopEvent); return 0; }

Thanks!
Oleg

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

Reply via email to