Click here to Skip to main content
15,914,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help!!!!!i have got an error..... Pin
vishalmore12-Dec-04 22:48
vishalmore12-Dec-04 22:48 
GeneralRe: help!!!!!that doesnt help...... Pin
namaskaaram13-Dec-04 0:43
namaskaaram13-Dec-04 0:43 
GeneralRe: help!!!!!i have got an error..... Pin
IsaacLitingjun13-Dec-04 19:08
IsaacLitingjun13-Dec-04 19:08 
GeneralRe: help!!!!!i have got an error..... Pin
namaskaaram13-Dec-04 20:17
namaskaaram13-Dec-04 20:17 
Generalwebcam implementation in vc++ Pin
ps_diwanji12-Dec-04 17:11
ps_diwanji12-Dec-04 17:11 
GeneralRe: webcam implementation in vc++ Pin
Cyberizen12-Dec-04 19:20
Cyberizen12-Dec-04 19:20 
GeneralRe: webcam implementation in vc++ Pin
tspramod12-Dec-04 22:37
tspramod12-Dec-04 22:37 
GeneralRe: webcam implementation in vc++ Pin
Antti Keskinen12-Dec-04 23:27
Antti Keskinen12-Dec-04 23:27 
The most effective way to use an installed webcam is to use DirectShow, which comes with DirectX 9.

The webcam driver, when it was installed and loaded, created a DirectShow filter for the video stream and pictures available from the camera. This filter offers one or more interfaces, depending on what services the camera has. If you build and operate a 'capture chain' (DirectShow term), you can capture live data from the camera into a Windows window, a file or a network stream.

To use DirectShow in your programs, you must download and install the latest DirectX SDK available freely from Microsoft. The DirectX Documentation accompaning this SDK has a few examples and code samples on how to create capture chains. The process of creating a chain is similar everytime: the filters that join the chain determine the nature, purpose and features of the chain.

For example, to use a webcam to get live data from the camera to a Windows window, create a capture chain with the webcam filter and a Video Rendering Mixer filter. VRM filter can render video data into a window you create and specify with a HWND parameter. Remember that the VRM filter creates an auxilary window which is a child of the HWND you specify. The auxilary window has no title bar, system menu or anything else. It's just a blank square which is constantly redrawn with video data. Thus you need an actual top-level window which allows you to control the video display. You can't create a program and just put a video window over the desktop, as you would then have no way of closing the program without CTRL+ALT+DEL.

-Antti Keskinen

----------------------------------------------
"If we wrote a report stating we saw a jet fighter with a howitzer, who's going to believe us ?"

-- R.A.F. pilot quote on seeing a Me 262 armed with a 50mm Mauser cannon.
GeneralRe: webcam implementation in vc++ Pin
Cyberizen13-Dec-04 5:30
Cyberizen13-Dec-04 5:30 
GeneralRe: webcam implementation in vc++ Pin
Antti Keskinen13-Dec-04 7:46
Antti Keskinen13-Dec-04 7:46 
GeneralRe: webcam implementation in vc++ Pin
tspramod13-Dec-04 20:04
tspramod13-Dec-04 20:04 
GeneralConfused by the "Mapping Mode" Pin
LiYS12-Dec-04 17:07
LiYS12-Dec-04 17:07 
GeneralRe: Confused by the "Mapping Mode" Pin
Antti Keskinen12-Dec-04 22:51
Antti Keskinen12-Dec-04 22:51 
QuestionHow to create a dialog like this? Pin
Arcrest12-Dec-04 15:26
Arcrest12-Dec-04 15:26 
AnswerRe: How to create a dialog like this? Pin
Prakash Nadar12-Dec-04 17:21
Prakash Nadar12-Dec-04 17:21 
GeneralRe: How to create a dialog like this? Pin
Arcrest13-Dec-04 17:22
Arcrest13-Dec-04 17:22 
Questiondefinition file? Pin
nm_11412-Dec-04 11:48
nm_11412-Dec-04 11:48 
AnswerRe: definition file? Pin
Jack Puppy12-Dec-04 13:38
Jack Puppy12-Dec-04 13:38 
AnswerRe: definition file? Pin
bmzhao12-Dec-04 14:18
bmzhao12-Dec-04 14:18 
Generaltable like structure(multiple collumns) Pin
Spiritofamerica12-Dec-04 9:46
Spiritofamerica12-Dec-04 9:46 
GeneralRe: table like structure(multiple collumns) Pin
PJ Arends12-Dec-04 10:17
professionalPJ Arends12-Dec-04 10:17 
GeneralRe: table like structure(multiple collumns) Pin
lisoft12-Dec-04 13:55
lisoft12-Dec-04 13:55 
GeneralRe: table like structure(multiple collumns) Pin
bmzhao12-Dec-04 14:11
bmzhao12-Dec-04 14:11 
GeneralCEdit select text highlight Pin
Anonymous12-Dec-04 8:26
Anonymous12-Dec-04 8:26 
GeneralRe: CEdit select text highlight Pin
PJ Arends12-Dec-04 9:14
professionalPJ Arends12-Dec-04 9:14 

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.