C++ and STL
  Common Issues
  Destructor
  regex
  string
 MFC
  CButton
  CDialog
  CEdit
  CInternetSession
  CWinThread
  CWnd
 MS VS FAQ
  Compiling, building
  Debugging
  Editor
  Settings
 Win32, API
  Console
  File System
  Graphics
  Internet functions
  Kernel objects
  Security
  Sound
  Thread, process
  Window
 Windows NT/2K*
  Logon, logoff...
  Networking
  Service Packs
 | About
  About
  Links & Freeware

Powered by
CoderTown



How to get a picture from web (USB) camera?

The Platform SDK, Windows Multimedia provides developers with so called AVICap window class. See MSDN for details. This is not up-to-date technique but you still can use it. Key macro is capCreateCaptureWindow. Your project will need Vfw.h and Vfw32.lib to be included. Sample project and executable (MFC used) are available.

Recommended links: CFrameGrabber class.

Created: 2003-05-12
Updated: 2004-03-03

Google
 
Web visualcpp.net
msdn.microsoft.com codeguru.com