Using VS2012 C + + to build DLLs

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.