title: reading video from file opencv
body: <p>Hi So I have written this code to capture a video from file</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;cv.h&gt;
  #include &quot;highgui.h&quot;
  #include &lt;iostream&gt;
  
  //using namespace cv
  
  int main(int argc, char** argv)
  {
      CvCapture* capture=0;
      IplImage* frame=0;
      capture = cvCaptureFromAVI(char const* filename); // read AVI video    
      if( !capture )
          throw &quot;Error when reading steam_avi&quot;;
  
      cvNamedWindow( &quot;w&quot;, 1);
      for( ; ; )
      {
          frame = cvQueryFrame( capture );
          if(!frame)
              break;
          cvShowImage(&quot;w&quot;, frame);
      }
      cvWaitKey(0); // key press to close window
      cvDestroyWindow(&quot;w&quot;);
      cvReleaseImage(&amp;frame);
  }
  </code></pre>
  <p>Everytime I run it, I get the following error:</p>
  <blockquote>
  <p>CaptureVideo.cpp: In function ‘int main(int, char**)’:</p>
  <p>CaptureVideo.cpp:13:28: error: expected primary-expression before ‘char’</p>
  </blockquote>
  <p>Any help will be much appreciated.</p>