// MultiRead.cpp : Implementation of WinMain // Note: Proxy/Stub Information // To build a separate proxy/stub DLL, // run nmake -f MultiReadps.mk in the project directory. #include "stdafx.h" #include "resource.h" #include "initguid.h" #include "MultiRead.h" #include "MultiRead_i.c" #include "MultiDlg.h" CExeModule _Module; BEGIN_OBJECT_MAP(ObjectMap) END_OBJECT_MAP() ///////////////////////////////////////////////////////////////////////////// // extern "C" int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPTSTR lpCmdLine, int /*nShowCmd*/) { lpCmdLine = GetCommandLine(); //this line necessary for _ATL_MIN_CRT #if _WIN32_WINNT >= 0x0400 & defined(_ATL_FREE_THREADED) HRESULT hRes = CoInitializeEx(NULL, COINIT_MULTITHREADED); #else HRESULT hRes = CoInitialize(NULL); #endif _ASSERTE(SUCCEEDED(hRes)); _Module.Init(ObjectMap, hInstance, &LIBID_MULTIREADLib); _Module.dwThreadID = GetCurrentThreadId(); TCHAR szTokens[] = _T("-/"); CMultiDlg dlg; dlg.DoModal(); _Module.Term(); CoUninitialize(); return 0; }