If u don' t have 2 DllMain do this(it's happened me too):
Project->Proprety of ....-> Property Configuration -> Linker -> Input :
Add in additional Dependencies msvcrtd.lib and add in Ignore specific library msvcrtd.lib.
Sorry if I wrong name but i have installed Visual Studio in my language