title: OpenCV, C++, VideoCapture error "...because opencv_videoio440d.dll was not found..."
body: <p>This works fine</p>
  <pre><code>#include &lt;opencv2/opencv.hpp&gt;
  using namespace cv;
  </code></pre>
  <p>This is the code that's not working</p>
  <pre><code>VideoCapture cap(0);
      if (!cap.isOpened())
      {
          return -1;
      }
  </code></pre>
  <p>Here is the screenshot showing both the SystemError and another showing that the file <code>opencv_videoio440d.dll</code> exists</p>
  <p><a href="https://i.stack.imgur.com/3hg8V.jpg" rel="nofollow noreferrer">file browser screenshot</a></p>
  <p><a href="https://i.stack.imgur.com/g9VAP.jpg" rel="nofollow noreferrer">SystemError screenshot</a></p>
  <p>if it helps;
  These are the videos I followed to install OpenCV..</p>
  <p><code>https://www.youtube.com/watch?v=x5EWlNQ6z5w [PART 1]</code></p>
  <p>and</p>
  <p><code>https://www.youtube.com/watch?v=p-6rG6Zgu4U [PART 2]</code></p>