Web Cam Problem
-
Hi, i want to use web cam to capture pictures. to use webcam i have to user avicap32.dll. so how can i add this to reference. i tried by add reference, but couldn't any one please just tell me how can i use avicap32.dll .... thanks
A S E L A
I believe you need to use pinvoke with that dll. This article[^] uses it, you may find it of use.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus) -
Hi, i want to use web cam to capture pictures. to use webcam i have to user avicap32.dll. so how can i add this to reference. i tried by add reference, but couldn't any one please just tell me how can i use avicap32.dll .... thanks
A S E L A
If the camera supports Windows Image Acquisition (WIA), it's easier to use that. (See here[^]) If it doesn't, then yes acicap32 is an option. (There's a sample here[^]) I believe it would also be possible to do it with direct show, but I think it's probably a bit harder. (see here[^]) Finally there are 3rd party libraries out there that can do things like this. One example is OpenCV[^], and the OpenCVDotNet[^] wrapper.
Simon