hey all
so here's my problem: im just trying to learn a little opencv and ive been stuck at this for a while. When i run the following code, i get a runtime error " An application has made an attempt to load the C runtime library incorrectly ". This happens whenever i try to play an avi using this code
#include "stdafx.h"
#include "highgui.h"
int main(int argc, char *argv[])
{
int c;
IplImage *img;
CvCapture* capture = cvCreateFileCapture( "test.avi" );
cvNamedWindow("mainWin", CV_WINDOW_AUTOSIZE);
cvMoveWindow("mainWin", 5, 5);
while(1)
{
img=cvQueryFrame(capture);
cvShowImage("mainWin", img );
c=cvWaitKey(10);
if(c == 27)
break;
}
return 0;
}
Any suggestion?
Thnx