实例介绍
使用微软提供的avi库进行网络视频聊天。 Vfw是微软提供的一个avi库。 源代码是VC6.0下的,书本讲的十分简练,也有很多错误。这个是使用VS2010重写的,其中加入了大量自己的理解注释,对于不了解如何进行网络视频开发的人很有借鉴意义。 #include "vfw.h" // Windows提供的avi库 #pragma comment (lib, "vfw32") // 导入动态链接库 由于程序在接收字节时使用的是字符指针,所以编译程序时要在多字节字符集下编译方可。在多字节字符集模式下,中文使用的是GB2312.
【实例截图】
【核心代码】
4744302542870309672.rar
├── 程序
│ ├── VideoChatClient
│ │ ├── Debug
│ │ ├── VideoChatClient
│ │ │ ├── ClientSock.cpp
│ │ │ ├── ClientSock.h
│ │ │ ├── Debug
│ │ │ │ ├── VideoChatClient.Build.CppClean.log
│ │ │ │ └── VideoChatClient.log
│ │ │ ├── ReadMe.txt
│ │ │ ├── Release
│ │ │ │ └── VideoChatClient.log
│ │ │ ├── res
│ │ │ │ ├── VideoChatClient.ico
│ │ │ │ └── VideoChatClient.rc2
│ │ │ ├── resource.h
│ │ │ ├── stdafx.cpp
│ │ │ ├── stdafx.h
│ │ │ ├── targetver.h
│ │ │ ├── VideoChatClient.aps
│ │ │ ├── VideoChatClient.cpp
│ │ │ ├── VideoChatClientDlg.cpp
│ │ │ ├── VideoChatClientDlg.h
│ │ │ ├── VideoChatClient.h
│ │ │ ├── VideoChatClient.rc
│ │ │ ├── VideoChatClient.vcxproj
│ │ │ ├── VideoChatClient.vcxproj.filters
│ │ │ └── VideoChatClient.vcxproj.user
│ │ ├── VideoChatClient.sln
│ │ ├── VideoChatClient.suo
│ │ └── VideoChatServer
│ │ ├── Debug
│ │ │ ├── VideoChatServer.Build.CppClean.log
│ │ │ └── VideoChatServer.log
│ │ ├── ReadMe.txt
│ │ ├── Release
│ │ │ └── VideoChatServer.log
│ │ ├── res
│ │ │ ├── VideoChatServer.ico
│ │ │ └── VideoChatServer.rc2
│ │ ├── resource.h
│ │ ├── ServerSock.cpp
│ │ ├── ServerSock.h
│ │ ├── stdafx.cpp
│ │ ├── stdafx.h
│ │ ├── targetver.h
│ │ ├── VideoChatServer.aps
│ │ ├── VideoChatServer.cpp
│ │ ├── VideoChatServerDlg.cpp
│ │ ├── VideoChatServerDlg.h
│ │ ├── VideoChatServer.h
│ │ ├── VideoChatServer.rc
│ │ ├── VideoChatServer.vcxproj
│ │ ├── VideoChatServer.vcxproj.filters
│ │ └── VideoChatServer.vcxproj.user
│ └── 程序说明.txt
└── 虚拟摄像头.rar
11 directories, 46 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论