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

1.Windows API reference
2.HTML to WML Converter
3.Webcam streaming in VB.NET
4.Remoting with firewalls
5.RSA from first principles
6.Key & MouseLogger in .NET
7.Networking Resource Kit for .NET
8.Automatic Reboot with .NET
9.XAML Schema
10.Migrating VB6 Winsock to VB.NET
11.Migrating C++ sockets to C#
12.RFC Reference guide
13.Lingua - Localization webservice
14.COM Reference guide
15.WMI Reference guide
16.SQL stored procedures
17.TCP & UDP port reference
18..NET Framework reference
19.Ethernet Type codes
20.IP to country webservice
21.MAC address assignments
22.DLL entry point reference
23.WHOIS server list
24. Turing Numbers
25. Boost SQL performance
26. Progress Bar in ASP.NET
27. OleDb WebService
27. 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

© 2008 Free SMS| Sage Line 50 Component