1, first, create a new project by File->new Project and open the New Project dialog box.
2, select Win32->win32project in the Visual C + + language:
3, after selecting the previous step ok (OK), select the ' Application Setting ' tab on the left in the wizard, select ' Application Type ' as ' DLL ', ' Additional options ' for ' empty ', Create a new empty project.:
4, here, copy the header file to be implemented into the same directory as the project file (xx.vcxproj), then the ' head files ' in the ' solution Explore ' view through the right button->add->existing item Reference to the header file that you just copied.
5, under ' Source files ' in the ' Solution Explore ' view, create a new. cpp file to implement the methods in the 3rd step header file. Compile the project and build it.
It is worth noting that in solution files (Xx.sln) and project Files (xx.vcxproj) Two files, there are ' debug ' folders in the same directory as their peers, that is, there are two debug folders, and DLL files are available with the (Xx.sln) file siblings , I didn't notice it at first, and I always thought of the problem of VS, from VS2010 to VC6.0, to VS2012. Later, in VS2012 's ' output ' view, it was inadvertently seen ' xxxx.dll ' to know that DLL files have been generated.
Using VS2012 C + + to build DLLs