I am getting this linker error.
mfcs80.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRT.lib(dllmain.obj)
I found solution Here Visual Studio 2010 library linking order
this is: /FORCE:MULTIPLE in linker options
I had to mix ATL and MFC together , to use [module(name = "mymodule")]; construction in MFC application together with "__hook" keyword