EXTMGR_ADDINS create dll VS2012

scenario: Domino Server 9.0.1 64 -bit on Win Server 2008 64 -bit .

I created a dll with VS 2012 according to the template toolkit C API for Domino 9.0.

In the project I imported the include and lib toolkit domino 9 .

On the server I installed VC ++ 2012 Runtime x86 and x64 .

Event MainEntryPoint and EMHandlerProc write a log file to C : \ .

The dll will not load and can not find any log files .

How should I create projetct dll ? MFC ? ATL ? that setting should I use ?