Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
I learning to development a webcam application using C instead of C++. I know there are example of DirectShow and MediaFoundation around but it works in only C++.

I also tried using VFW but I can only get it to work properly in window xp. When I try running it on windows 7, it seems to be able only run once. It will not be able to connect to the capturing device after that.

I would like to know what other microsoft api I can use to develop C webcam application ? Can I avoid using 3rd party api ?
Posted
Comments
KarstenK 8-May-14 9:08am    
What is the problem with C++?

You need a proper cleanup in VFW to restart it. Check that you close all handles.

You better look for C# if you want other API. Microsoft is moving AWAY from C...
Xiao Ling 22-May-14 21:52pm    
C# is better for Windows 7 or above. As to C, why don't you mix it with C++?

1 solution

This page describes how to create a webcam using C++ and MFC but you have mentioned you have to avoid C++. Are there any reasons why you have to program in C but not C++?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900