what do you mean with " create a finished dll?" if I would compile it to a dll and send the dll to you, it would be useless, you cant edit compiled dll's >.<
I gues you get VS2012 error because you forgot to set the right paths of includes and libs & multibyte~
Confi-Manager -> General -> Multibyte
VC++ Dics -> C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Include;$(IncludePath)
C:\Program Files %28x86%29\Microsoft DirectX SDK %28June 2010%29\Lib\x86;$(LibraryPath)