1 // ImageView.cpp : main source file for ImageView.exe
6 #if (_WTL_VER < 0x0750)
7 #error ImageView requires WTL version 7.5 or higher
14 #define _ATL_USE_CSTRING_FLOAT
22 #include "ImageViewView.h"
23 #include "ImageViewdlg.h"
28 int WINAPI
_tWinMain(HINSTANCE hInstance
, HINSTANCE
/*hPrevInstance*/, LPTSTR lpstrCmdLine
, int nCmdShow
)
31 HRESULT hRes
= CMainFrame::ActivatePreviousInstance(hInstance
, lpstrCmdLine
);
33 if(FAILED(hRes
) || S_FALSE
== hRes
)
38 hRes
= ::CoInitializeEx(NULL
, COINIT_MULTITHREADED
);
39 ATLASSERT(SUCCEEDED(hRes
));
41 AtlInitCommonControls(ICC_DATE_CLASSES
);
42 SHInitExtraControls();
44 hRes
= _Module
.Init(NULL
, hInstance
);
45 ATLASSERT(SUCCEEDED(hRes
));
47 int nRet
= CMainFrame::AppRun(lpstrCmdLine
, nCmdShow
);