#include"stdafx.h" #include"highgui.h" intmain(intargc,char*argv[]) { cvNamedWindow("avi"); CvCapture*capture=cvCreateFileCapture("D:\\sample.avi"); IplImage*frame; while(1) { frame=cvQueryFrame(capture); if(!frame)break; cvShowImage("avi",frame); charc=cvWaitKey(33);