Visual studio ------ create a c ++ project process, visual studio ------

Source: Internet
Author: User

Visual studio ------ create a c ++ project process, visual studio ------

I have downloaded a visual studio 2015 installation and installed it for a long time. After a long time of exploration, I will create a project and write down the process, there is a basis for searching.

 

First, Step 1: Open the software

Then, click File> New> Project> in the upper-left column to obtain the following interface:

 

Click "Win32 console application" to create a new project. You can change the name and click "OK"

The following page is displayed:

Then click "Next". The following figure is displayed:

In the "Empty Project" area, check, select, and click Finish.

In this way, a project is initially created!

Then, in the "View"-> "other window"-> click "Property Manager" to operate

Next, the interface is as follows. Right-click the created new project symbol, and a menu appears. Click "properties" at the bottom ":

The following interface is displayed, and the "Platform" option x64 (my computer is 64-bit) is displayed. In "VC ++ target, to select "include directory" and "library directory", you need to change the path. According to your opencv location, this location is mine, and each location is different, my path is as follows:

Include directory:

H: \ jiqishijue \ opencv \ build \ include
H: \ jiqishijue \ opencv \ build \ include \ opencv
H: \ jiqishijue \ opencv \ build \ include \ opencv2

These three items are directly put in.

Library directory:

H: \ jiqishijue \ opencv \ build \ x64 \ vc14 \ lib

This is changed to this.

 

Finally, select "input" under "linker" and select "add dependency" to change

Opencv_world330d.lib

 

Click "OK", the interface disappears, and the "solution Resource Manager" is re-opened (selected in "View)

Right-click the source file and click "new item" in the menu"

The following page is displayed:

Select the name of the "c ++ file" and click "add!

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.