重载App里的Run也许可以.要不然应用程序会一开始就马上结束的.
int C...App::Run() 
{
HACCEL  hAccel;
//return CWinApp::Run();
    // TODO: Add your specialized code here and/or call the base class
extern void upDateFrame();
hAccel=LoadAccelerators(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDR_MAINFRAME));
MSG msg;
Game game;
game.Init ();
while(1){
if(PeekMessage(&msg,NULL,0,0,PM_NOREMOVE)){
if(GetMessage(&msg,NULL,0,0)==FALSE){
ExitInstance();
return msg.wParam ;
}
if(!TranslateAccelerator(hWnd,hAccel,&msg)){ //处理加速键
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}else{
if(mode==3&&!bPaused){
if(allMpcFile)
                 game.Run ();
}
else WaitMessage();
}
}
return TRUE;
}