How to capture image from camera ?

Posted on 2002-04-15
Last Modified: 2010-05-02

I have wrote a small app to capture an image from a web cam to publish to member cards.  However, i used the quickcam SDK - I have now found out that this will not run on Windows NT.  So, my question is, what is the simplest way to grab an image from a camera then save to a file - but not using the quickcam sdk :-)

The camera is a quickcam parallel VC.  I could just say upgrade your os, but this is not really an option due to their internal politics.  

A quick response would be great !!


Question by:schofield_g
  • 2
  • 2
LVL 18

Expert Comment

ID: 6942029
Well, Windows NT is going to limit you in a lot of ways.  The quick answer to your question is to use the Video For Windows (VFW) API, but this requires Direct-X 6 or 7 I think, which is not available for NT 4.0.

I downloaded some sample code from microsoft for this, and I also downloaded a free OCX from somewhere, but again, they require Video For Windows, and I think VFW requires a recent version of direct-x

Author Comment

ID: 6951128
Hello, thanks mdougan for your comment...I did think I would be limited, I have looked into the VPW and it looks an option, however...I can only get samples and documentation etc where it is referring to video capture..not capture of a single frame to a file.

Any chance you can shed some more light on this ?
LVL 18

Accepted Solution

mdougan earned 75 total points
ID: 6952347
Well, the thing that I've ended up using is a freeware/shareware ocx called ezvidcap.ocx

This lets you capture AVI but also single frames, but I think that it requires Video For Windows.  

My Windows NT machine doesn't support the USB port so, I can't plug in the camera there, so, I plug into a W2K box that also supports VFW and it works fine.

Author Comment

ID: 6953037
Great !

I have had a look at the ocx and it is exactly what I needed.  It is for a parallel webcam on nt4 so I have no issues there.

That is a real help, it has saved from admitting defeat and saying that the app will not run on nt4.

Thanks for your help


Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now