8 #include "TheoraDecoder.h"
9 #include "VorbisDecoder.h"
13 #include "MainDialog.h"
17 WTL::CAppModule _Module;
27 HINSTANCE /*hPrevInstance*/,
31 _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
32 // _CrtSetBreakAlloc(1);
34 HRESULT hRslt = OleInitialize(0);
39 _Module.Init(0, hInstance);
41 int result = DoProcess();
52 static bool DoInitialize();
53 static void DoUninitialize();
71 static bool DoInitialize()
73 if (!QT_Initialize()) {
77 if (!QV_Initialize()) {
84 static void DoUninitialize()
94 WTL::CMessageLoop theLoop;
95 _Module.AddMessageLoop(&theLoop);
100 theLoop.AddMessageFilter(&dlg);
102 HWND hwnd = dlg.Create(0);
104 dlg.ShowWindow(SW_NORMAL);
107 result = theLoop.Run();
110 theLoop.RemoveMessageFilter(&dlg);
113 _Module.RemoveMessageLoop();