Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
3.33/5 (3 votes)
See more:
hi,i am learning vc++ can u please provide a code to capture a image taken by webcam(usb) using vc++ mfc's and that should be stored in an file.
such that later that file can be transfered to clients from server.
if not code tell me the site where the method calls available such that i will rectify my problem.
Posted
Updated 16-Mar-10 5:17am
v2

There is a sample called AMCap in the DirectShow samples of the Windows SDK that teaches you how it's done.

Download the Windows SDK here - Windows SDK[^]

AMCap is available in the following path - [SDK Install Directory]\ Samples\ Multimedia\ DirectShow\ Capture\ AmCap
 
Share this answer
 
There are number of articles on CodeProject for video capturing using DirectShow.

http://www.codeproject.com/KB/audio-video/#Audio & Video - DirectShow
 
Share this answer
 
you can do this using a framework (see above answers) or you can create a kernel mode driver.

Regards,

K,D.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900