SProxy.cpp 1.2 KB

123456789101112131415161718192021222324252627
  1. // dui-demo.cpp : main source file
  2. //
  3. #include "stdafx.h"
  4. #include "MainDlg.h"
  5. #include "LoginDlg.h"
  6. #include "SouiInit.h"
  7. int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpstrCmdLine, int /*nCmdShow*/)
  8. {
  9. HRESULT hRes = OleInitialize(NULL);
  10. SASSERT(SUCCEEDED(hRes));
  11. int nRet = 0;
  12. CSouiLoader Loader(hInstance);
  13. InitSystemRes(Loader.GetApp(), Loader.GetComMgr());
  14. InitUserRes(Loader.GetApp(), Loader.GetComMgr());
  15. nRet = Run<CLoginDlg>(Loader.GetApp());
  16. nRet = Run<CMainDlg>(Loader.GetApp());
  17. OleUninitialize();
  18. return nRet;
  19. }