#include "stdafx.h"
#include <cv.h>
#include <cvcam.h>
#include <cxcore.h>
#include <highgui.h>
#pragma comment(lib,"cv.lib")
#pragma comment(lib,"cvcam.lib")
#pragma comment(lib,"cxcore.lib")
#pragma comment(lib,"highgui.lib")
int main(int argc, char* argv[])
{
IplImage *pImage = cvLoadImage(argv[1]);
assert(pImage != NULL);
cvNamedWindow(argv[2]);
cvShowImage(argv[2],pImage);
cvWaitKey();
cvReleaseImage(&pImage);
cvDestroyWindow(argv[2]);
return 0;
}