I\'ve been doing C for about 20 years but I\'ve never built a DLL; I\'ve always prefered to statically link.
I use the command line - cl.exe, etc - and gnumake makef
The easiest way to find out is to make a MSVC project where you set everything as you want, then enable build logging, make a build and analyze the buildlog for all the commands and their arguments.