Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Im just new in c++ Pin
Amr M. K.11-Dec-09 9:58
Amr M. K.11-Dec-09 9:58 
GeneralRe: Im just new in c++ Pin
EliottA11-Dec-09 9:58
EliottA11-Dec-09 9:58 
QuestionRe: Im just new in c++ Pin
CPallini11-Dec-09 11:30
mveCPallini11-Dec-09 11:30 
AnswerRe: Im just new in c++ Pin
Luc Pattyn11-Dec-09 11:53
sitebuilderLuc Pattyn11-Dec-09 11:53 
GeneralRe: Im just new in c++ Pin
Amr M. K.11-Dec-09 12:31
Amr M. K.11-Dec-09 12:31 
GeneralRe: Im just new in c++ Pin
Tim Craig11-Dec-09 18:23
Tim Craig11-Dec-09 18:23 
QuestionRe: Im just new in c++ Pin
David Crow11-Dec-09 15:24
David Crow11-Dec-09 15:24 
Questiontaking a video from usb cam Pin
Asmaa Khaled FCI11-Dec-09 8:22
Asmaa Khaled FCI11-Dec-09 8:22 
Hi,
It is a code for a robot i want code take vedio from usb cam and make it frams(pics) as i could use it later @ another code the code is in C++ i found one but there is a compiler error it is little but i canot fixed it
#include "stdafx.h"
#include "cv.h"
#include "highgui.h"


IplImage* src = NULL;      


int _tmain(int argc, _TCHAR* argv[])
{


  int key;      
  CvCapture* capture = NULL;

  
  if(NULL==(capture = cvCaptureFromCAM(-1)))
  {
    printf("\nError on cvCaptureFromCAM");
    return -1;
  }

  //-----
  cvNamedWindow("Capture", CV_WINDOW_AUTOSIZE);
  cvNamedWindow("Capture2", CV_WINDOW_AUTOSIZE);
  
  cvMoveWindow("Capture", 50, 50);
  cvMoveWindow("Capture2", 320, 50);
  
  for(;;){
  
    if(NULL==(src=cvQueryFrame(capture))){
      printf("\nError on cvQueryFrame");
      break;
    }

    
    cvShowImage("Capture", src);

    
    key = cvWaitKey(10);
    
    if(key==0x1b)
      break;
  }
  
  cvReleaseCapture(&capture);
  cvDestroyWindow("Capture");

  return 0;

}

AnswerRe: taking a video from usb cam Pin
loyal ginger11-Dec-09 9:33
loyal ginger11-Dec-09 9:33 
GeneralRe: taking a video from usb cam Pin
Sauce!11-Dec-09 19:09
Sauce!11-Dec-09 19:09 
AnswerRe: taking a video from usb cam Pin
Tim Craig11-Dec-09 18:26
Tim Craig11-Dec-09 18:26 
AnswerRe: taking a video from usb cam Pin
__erfan__11-Dec-09 23:09
__erfan__11-Dec-09 23:09 
Questioncover a double x to char ??? Pin
a04.lqd11-Dec-09 8:10
a04.lqd11-Dec-09 8:10 
AnswerRe: cover a double x to char ??? [modified] Pin
Luc Pattyn11-Dec-09 8:45
sitebuilderLuc Pattyn11-Dec-09 8:45 
GeneralRe: cover a double x to char ??? Pin
CPallini11-Dec-09 11:28
mveCPallini11-Dec-09 11:28 
GeneralRe: cover a double x to char ??? Pin
Luc Pattyn11-Dec-09 11:52
sitebuilderLuc Pattyn11-Dec-09 11:52 
JokeRe: cover a double x to char ??? Pin
CPallini11-Dec-09 23:55
mveCPallini11-Dec-09 23:55 
AnswerRe: cover a double x to char ??? Pin
Richard MacCutchan12-Dec-09 1:52
mveRichard MacCutchan12-Dec-09 1:52 
Questionprint double array on openGL window??? Pin
a04.lqd11-Dec-09 7:51
a04.lqd11-Dec-09 7:51 
AnswerRe: print double array on openGL window??? Pin
Richard MacCutchan12-Dec-09 1:50
mveRichard MacCutchan12-Dec-09 1:50 
QuestionConvert _variant_t to char* Pin
lemonash11-Dec-09 7:01
lemonash11-Dec-09 7:01 
AnswerRe: Convert _variant_t to char* Pin
Rolf Kristensen12-Dec-09 2:52
Rolf Kristensen12-Dec-09 2:52 
GeneralRe: Convert _variant_t to char* Pin
lemonash12-Dec-09 4:11
lemonash12-Dec-09 4:11 
QuestionTransparent Window in Remote desktop [modified] Pin
Cvaji11-Dec-09 1:15
Cvaji11-Dec-09 1:15 
AnswerRe: Transparent Window in Remote desktop Pin
Migounette11-Dec-09 6:09
Migounette11-Dec-09 6:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.