hi
below i'm trying to get a movie screencap. but i get error no 259: "Driver cannot recognize the specified command parameter" error after the capture command returns. what i'm doing wrong here please?
Code:
int main(int argc, char* argv[])
{
int err=0;
char errstr[256];
//open and play the video
mciSendString("open messwiththebest.mpg alias mwtb",0,0,0);
mciSendString("play mwtb",0,0,0);
//pause the movie when user hits a key
getch();
mciSendString("pause mwtb",0,0,0);
//try to get a capture
err = mciSendString("capture mwtb E:\\capture.jpg",0,0,0); //error no: 259 is returned
mciGetErrorString(err,errstr,256);
return 0;
}