/////////////////////////////////////////////////////////////////////////// // DllPackage.cpp - Supplies DllMain // // version 1.0 // // // // - Create as Win32 Project: // // - Set Properties\General\Configuration Type = Dynamic Library (.dll) // // - Set Properties\C/C++\PreProcessor\defines = ...;DLL_SOURCE // // - Set Properties\C/C++\Code Generation\Runtime Library // // to the value: Multi-threaded Debug DLL // // // // Jim Fawcett, CSE687 - Object Oriented Design, Spring 2006 // /////////////////////////////////////////////////////////////////////////// #include #include "DllPackage.h" BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; }