First time here? Check out the FAQ!
answered 2013-02-11 06:09:07 -0600
CvCapture* camera; // camera is a pointer already //so change: frame = cvQueryFrame(&camera); //to frame = cvQueryFrame(camera);
also:
int keyPressed = cvWaitKey(2);