In Visual C++ 6.0 you can use _Module.m_hInst to get the module handle
in an Active Template Library (ATL) DLL project. In ATL 7.0, which comes with
Visual Studio 2003 and Visual Studio 2005, "_Module" has been replaced
and you can use the m_hInst member in _AtlBaseModule:
const HMODULE hLib = _AtlBaseModule.m_hInst;