Window name as unidentified identifier in simple program
I am a beginner in OpenCV and VC++. I wrote the below introductory program to display a picture :
#include "stdafx.h"
#include <highgui.h>
int main(int argc, char** argv) {
IplImage* img = cvLoadImage("C:\\flower.jpg",1);
cvNamedWindow(“Example1”, CV_WINDOW_AUTOSIZE);
cvShowImage(“Example1”, img);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow(“Example1”);
}
In this , I'm getting the following error :
Error 1 error C2065: '“Example1”' : undeclared identifier C:\opencv_examples\opencv_sanitytest\ex1\ex1\ex1.cpp 5 1 ex1
Error 2 error C2065: '“Example1”' : undeclared identifier C:\opencv_examples\opencv_sanitytest\ex1\ex1\ex1.cpp 6 1 ex1
Error 3 error C2065: '“Example1”' : undeclared identifier C:\opencv_examples\opencv_sanitytest\ex1\ex1\ex1.cpp 9 1 ex1
4 IntelliSense: identifier "“Example1”" is undefined c:\opencv_examples\opencv_sanitytest\ex1\ex1\ex1.cpp 5 16 ex1
I think that some header files are missing perhaps. Any help would be appreciated.