I am using VS2010 and opencv2.1. Under Win7, the sample programme is below:
#include <cv.h>
#include <cxcore.h>
#include <highgui.h>
int main(int argc, char* argv[])
{
IplImage *img = cvLoadImage("funny-pictures-cat-goes-pew.jpg");
cvNamedWindow("Image:",1);
cvShowImage("Image:",img);
cvWaitKey();
cvDestroyWindow("Image:");
cvReleaseImage(&img);
return 0;
}
The programme failed to start. I see:
The application was unable to start correctly(0xc0150002). Click OK to close the application.
Why?