123456789101112131415161718192021222324252627 |
- // 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<CLoginDlg>(Loader.GetApp());
- nRet = Run<CMainDlg>(Loader.GetApp());
- OleUninitialize();
- return nRet;
- }
|