- 博客(5)
- 收藏
- 关注
原创 C++使用Dshow方式预览USB摄像头并保存
网上有很多各种各样的方法拍照。有Opencv vfw Dshow。vfw方式只能连接默认摄像头,捕获时还卡,两三秒内无响应。Dshow方式好,但网上有人的代码马上卡。我费了很大劲才成功。编译环境MinGW,DEVC++,还要注意Dshow的链接库Strmiids.lib哦。
2022-11-28 16:55:18
889
原创 C++进度条(2)
上次的进度条的方法太简陋了,运行时处理不到消息循环,当时我还不会win32控件,五年级的普通学生一个自学的当然不好。这次我用了win32控件来做,代码如下:#include<windows.h>#include<CommCtrl.h> //公共控件库#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0
2022-04-13 14:57:14
650
原创 C++GDI做进度条
直接上代码:#include <windows.h> /* This is where all the input to the window goes to */LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(Message) { /* Upon destruction, tell the main thread to stop */ ..
2021-12-22 12:51:21
310
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人