C++源代码游戏编程--WinMain()函数集.docVIP

  • 13
  • 0
  • 约6.98千字
  • 约 7页
  • 2017-08-14 发布于河南
  • 举报
C++源代码游戏编程--WinMain()函数集 C++源代码游戏编程--WinMain()函数交流 //****************************************************************** //函数:WinMain() //功能:应用程序入口 //****************************************************************** int PASCAL WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { ??? MSG msg; ??? hInst=hInstance; ??? //初始化主窗口 ??? if (!InitWindow( hInstance, nCmdShow)) ??? return FALSE; ??? //初始化DirectDraw环境 ??? if (!InitDDraw()) ??? { ??????? MessageBox(hWndMain, 初始化DirectDraw过程中出错!, Error, MB_OK); ??????? FreeObjects(); ??????? DestroyWindow(hWndMain);

文档评论(0)

1亿VIP精品文档

相关文档