I applied tutorials on the internet for installing opencv 2.9 but I get 

```
Unhandled exception at 0x00007FFC6470C0B4 (ntdll.dll) in Project11.exe: 
0xC0000135: Unable to Locate DLL.

```

I tried the below code but have been unable to solve it.

```
#include "stdafx.h"
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <iostream>
#include <stdio.h>
#include "opencv.hpp"

int main(){
    CvCapture *camera=cvCaptureFromFile("rtsp://192.168.1.19:554/0/1:1/main");
    if (camera==NULL)
    printf("camera is null\n"); 
    else
    printf("camera is not null");

    cvNamedWindow("img");
    while (cvWaitKey(10)!=atoi("q")){
            IplImage *img=cvQueryFrame(camera);
            cvShowImage("img",img);
    }
    cvReleaseCapture(&camera);
}

```