用C开发网络摄像头应用程序 [英] Developing a webcam application in C

查看:415
本文介绍了用C开发网络摄像头应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我学习使用C而不是C ++开发网络摄像头应用程序。我知道有DirectShow和MediaFoundation的例子,但它只适用于C ++。



我也试过使用VFW,但我只能让它在窗口xp中正常工作。当我尝试在Windows 7上运行它时,它似乎只能运行一次。之后它将无法连接到捕获设备。



我想知道我可以使用哪些其他微软api来开发C网络摄像头应用程序?我可以避免使用第三方API吗?

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 ?

推荐答案

页面介绍了如何使用C ++和MFC创建网络摄像头,但您已经提到过必须避免使用C ++。你有什么理由要用C编程而不是用C ++编程吗?
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++?


这篇关于用C开发网络摄像头应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆