First time here? Check out the FAQ!
answered 2016-02-12 03:02:34 -0600
in ver 3.0 CAP_PROP_FRAME_WIDTH is member of cv:: namespace. May be you are using an outdated version of OpenCV ? did you try with CV_CAP_PROP_FRAME_WIDTH ?
CAP_PROP_FRAME_WIDTH
CV_CAP_PROP_FRAME_WIDTH