会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
WindSnowLi
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
12
下一页
2022年2月21日
又有了新思路,复用线程,学以致用——C++线程池
摘要: 又有了新思路,复用线程 ThreadPool.hpp #pragma once #include <thread> #include <memory> #include <functional> #include <utility> #include <condition_variable> #in
阅读全文
posted @ 2022-02-21 23:06 WindSnowLi
阅读(29)
评论(0)
推荐(0)
2022年2月19日
C++使用mongo-cxx-driver进行文件GridFS上传下载
摘要: 源地址 #include <algorithm> #include <iostream> #include <ostream> #include <bsoncxx/json.hpp> #include <bsoncxx/stdx/make_unique.hpp> #include <mongocxx
阅读全文
posted @ 2022-02-19 12:52 WindSnowLi
阅读(80)
评论(0)
推荐(0)
2022年2月11日
使用FFMPEG配合bat批量执行程序将 m4a批量转mp3
摘要: 原文 FFMPEG:https://ffmpeg.org/ 可执行bat @echo off SETLOCAL ENABLEDELAYEDEXPANSION set path=.\m4a set rs=.\mp3 for /F %%i in ('Dir /B %path%') do ( set na
阅读全文
posted @ 2022-02-11 21:09 WindSnowLi
阅读(123)
评论(0)
推荐(0)
2022年1月10日
VC++串口通信SetCommState函数阻塞卡死
摘要: 链接 SetCommState的struct _DCB类型参数,其值 StopBits= 0,1,2对应的是1bit,1.5bits,2bits ByteSize = 6, 7, 8时StopBits不能为1 ByteSize = 5时StopBits不能为2
阅读全文
posted @ 2022-01-10 11:53 WindSnowLi
阅读(73)
评论(0)
推荐(0)
2022年1月1日
VC++获取Access查询的列名
摘要: 博客 // GetConnection()自定义函数,获取连接指针,类型_ConnectionPtr _ConnectionPtr pConnection = GetConnection(); _CommandPtr pCommand; _RecordsetPtr pRs; try{ pComman
阅读全文
posted @ 2022-01-01 19:03 WindSnowLi
阅读(20)
评论(0)
推荐(0)
2021年12月25日
一个简简单单的废物C++11日志输出封装
摘要: 实现 #pragma once #ifndef _LOG_CPP_HPP_ #define _LOG_CPP_HPP_ #include <iostream> #include <string> #include <deque> #include <chrono> #include <thread>
阅读全文
posted @ 2021-12-25 18:20 WindSnowLi
阅读(45)
评论(0)
推荐(0)
2021年12月15日
Windows vc++读取串口信息(同步读取,伪异步)
摘要: 个人文章地址 1. 头文件 #pragma once #include <string> #include <memory> #include <tuple> #include <functional> #include <thread> template<typename T> class Thr
阅读全文
posted @ 2021-12-15 17:27 WindSnowLi
阅读(213)
评论(0)
推荐(0)
2021年12月3日
C++在Linux平台与Windows平台通过系统api获取域名的IP地址
摘要: 链接 数据结构 Linux平台 #include <iostream> #include <netinet/in.h> #include <arpa/inet.h> #include <sys/socket.h> #include <netdb.h> #include <sys/unistd.h>
阅读全文
posted @ 2021-12-03 19:58 WindSnowLi
阅读(14)
评论(0)
推荐(0)
Linux C++ 使用socket进行Http请求
摘要: 链接 HTTP包格式 基本请求格式 基本响应格式 暴力解析代码及测试(记得加参数-std=c++2a) #include <iostream> #include <map> #include <utility> #include <netinet/in.h> #include <cstring> #
阅读全文
posted @ 2021-12-03 19:48 WindSnowLi
阅读(290)
评论(0)
推荐(0)
2021年11月23日
SpringBoot使用HandlerInterceptor添加跨域信息头
摘要: 原产地 有时会添加一个不是映射到请求方法直接返回的拦截器,这个拦截器应该在预验请求拦截器的后边,否则OPTIONS预验请求会被直接返回,带不回跨域信息头 /** * 配置拦截器 * * @author yujie */ @Configuration public class SystemWebCon
阅读全文
posted @ 2021-11-23 12:48 WindSnowLi
阅读(173)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
12
下一页
公告