Steve sir as u said i tried with new versions of opencv but problem still pertains.. please help me out this is the code
include "stdafx.h"
include "cv.h"
include "highgui.h"
int _tmain(int argc, _TCHAR* argv[]) { IplImage* img = cvLoadImage( "image" ); cvNamedWindow( "MyJPG", CV_WINDOW_AUTOSIZE ); cvShowImage("MyJPG", img); cvWaitKey(0); cvReleaseImage( &img ); cvDestroyWindow( "MyJPG" ); return 0; }