大侠,进来看看为什么不能进入菜单?
1、程序编译能正常通过。
2、使用模拟器,一启动菜单,就弹出UIResource.c, line:230,Sorry,but an error has occurred
3、在机上运行,弹出UIResource.c, line:235,Menu rsrc not found,并重启。
附程序(按向导自动生成的)
static Boolean MainFormDoCommand(UInt16 command)
{
Boolean handled = false;
switch (command)
{
case OptionsAboutSunRise:
{
FormType * frmP;
/* Clear the menu status from the display */
MenuEraseStatus(0);
/* Display the About Box. */
frmP = FrmInitForm (AboutForm);
FrmDoDialog (frmP);
FrmDeleteForm (frmP);
handled = true;
break;
}
default:
break;
}
return handled;
}
static Boolean MainFormHandleEvent(EventType * eventP)
{
......
case menuEvent:
return MainFormDoCommand(eventP->data.menu.itemID);
......
}