// dui-demo.cpp : main source file // #include "stdafx.h" #include "MainDlg.h" #include "LoginDlg.h" #include "SouiInit.h" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int /*nCmdShow*/) { HRESULT hRes = OleInitialize(NULL); SASSERT(SUCCEEDED(hRes)); int nRet = 0; CSouiLoader Loader(hInstance); InitSystemRes(Loader.GetApp(), Loader.GetComMgr()); InitUserRes(Loader.GetApp(), Loader.GetComMgr()); nRet = Run(Loader.GetApp()); nRet = Run(Loader.GetApp()); OleUninitialize(); return nRet; }