// Timers.cpp : Implementation of DLL Exports. #include #include "Stopwatch.h" //////////////////////////////////////////////////////////////////// // DLL Entry Point extern "C" BOOL __stdcall DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/) { return TRUE; // All is well } //////////////////////////////////////////////////////////////////// // Returns IStopwatch back to the caller extern "C" HRESULT __stdcall DllGetClassObject( REFCLSID rclsid, REFIID riid, LPVOID* ppv) { *ppv = static_cast(new CStopwatch); return S_OK; }