// 程序入口. int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); HRESULT hRes = OleInitialize(NULL); // this resolves ATL window thunking problem when Microsoft Layer // for Unicode (MSLU) is used. ::DefWindowProc(NULL, 0, 0, 0L); DemoViewDelegate delegate; CommandLine::Init(0, NULL); DemoMain main; main.Run(); OleUninitialize(); return 0; }
// 程序入口. int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) { UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); ui::ScopedOleInitializer OleIniter; CommandLine::Init(0, NULL); DemoMain main; main.Run(); return 0; }