Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
Available now!
Buy at Amazon US or
Buy at Amazon UK



Articles

» Windows API reference
» Webcam streaming in VB.NET
» Remoting with firewalls
» RSA from first principles
» Key & MouseLogger in .NET
» Networking Resource Kit for .NET
» Migrating VB6 Winsock to VB.NET
» Migrating C++ sockets to C#
» RFC Reference guide
» COM Reference guide
» WMI Reference guide
» SQL stored procedures
» TCP & UDP port reference
» NET Framework reference
» Ethernet Type codes
» MAC address assignments
» DLL entry point reference
» Boost SQL performance
» Free SMS UK
» Free SMS Ireland
» Free SMS South Africa
» Internet Explorer

Contact us

The MapWebcamToWindow sub performs the following tasks

  • Retrieves the name of the first available VFW driver.
  • Creates a capture window, and attaches it to a given window handle.
  • Connects the VFW driver to the capture window
  • Sets the refresh rate to 15 frames per second
  • Initiates the transfer of video between the VFW driver and capture window
  • Sets the video format to 320x240
  • Moves and stretches the capture window to 320 x 240 pixels

Finally, we provide our CloseWebcam function to perform the cleanup
Sub CloseWebcam()
††† capDriverDisconnect(lwndC)

End Sub

And thatís all there is to it! To test the application, just plug in your webcam, turn off any other software that could be accessing it, then run this program. Your webcam video feed should appear on the form




Google

Copyright 2015 Open Merchant Account Ltd.