// dllmain.cpp : Defines the entry point for the DLL application. #include "stdafx.h" HINSTANCE hInst; BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { hInst = hModule; return TRUE; }