I used the VS2013.
The place where a project is to be managed is:
Items--Right-click Properties-->{vc++ Directory--contains directories and library directories, connector--and additional dependencies }
Include directory and library directory in the editor is the guide OpenCV the corresponding place is good
It can also be written in the form of%opencv%, provided that the environment variable is configured.
The additional dependencies are filled in as follows
Debug:
Opencv_core249.lib
Opencv_imgproc249.lib
Opencv_highgui249.lib
Opencv_ml249.lib
Opencv_video249.lib
Opencv_features2d249.lib
Opencv_calib3d249.lib
Opencv_objdetect249.lib
Opencv_contrib249.lib
Opencv_legacy249.lib
Opencv_flann249.lib
Release:
Opencv_core249d.lib
Opencv_imgproc249d.lib
Opencv_highgui249d.lib
Opencv_ml249d.lib
Opencv_video249d.lib
Opencv_features2d249d.lib
Opencv_calib3d249d.lib
Opencv_objdetect249d.lib
Opencv_contrib249d.lib
Opencv_legacy249d.lib
Opencv_flann249d.lib
Where "249" is the OPENCV version used
OPENCV configuration mnemonic for VS