Tobias的YY圣地

猪要上树啦----------------------------------------------------------------------------俺也来玩玩C++

  C++博客 :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理 ::
  2 随笔 :: 0 文章 :: 0 评论 :: 0 Trackbacks

2008年7月14日 #

int Run(LPTSTR /*lpstrCmdLine*/ = NULL, int nCmdShow = SW_SHOWDEFAULT)
{
    CMessageLoop theLoop;
    _Module.AddMessageLoop(&theLoop);

    CMainFrame wndMain;

    if(wndMain.CreateEx() == NULL)
    {
        ATLTRACE(_T("Main window creation failed!\n"));
        return 0;
    }

    wndMain.ShowWindow(nCmdShow);

    int nRet = theLoop.Run();

    _Module.RemoveMessageLoop();
    return nRet;
}
posted @ 2008-07-14 10:08 Tobias| 编辑 收藏

2008年4月13日 #

Only a test
posted @ 2008-04-13 22:24 Tobias 阅读(163) | 评论 (0)编辑 收藏

仅列出标题