If you want to distribute your DLL to other people, it might be a good idea to change Properties / C/C++ / Code Generation / Runtime Library from Multi-threaded DLL (/MD) to Multi-threaded (/MT). Otherwise your users won't be able to use the DLL without installing the VC++ Runtime Redistributable before - one of the funny ideas by Microsoft to make life more interesting.