1
代碼:視覺studio10錯誤LNK2019:解析外部符號@ _RTC_CheckStackVars @ 8函數引用_wmain
// displayvideo.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include"stdio.h"
#include "highgui.h"
int _tmain(int argc, _TCHAR* argv[])
{
cvNamedWindow:("Example2", CV_WINDOW_AUTOSIZE);
CvCapture* capture = cvCreateFileCapture("tendulkar.avi");
IplImage* frame;
while(1) {
frame = cvQueryFrame(capture);
if(!frame) break;
cvShowImage("Example2", frame);
char c = cvWaitKey(33);
if(c == 27) break;
}
cvReleaseCapture(&capture);
cvDestroyWindow("Example2");
return 0;
}