- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 C++ 使用 HTTP post 数据
上面 UploadRet 的msg 用 wstring ,因为客户的服务器返回的有中文,如果没有中文直接用string就行,有中文的话,回复来的 string 是utf-8编码的,需要进行转换,当时开发平台是win32的,有win32平台的相关api调用,这里省略。post + json 方式。
2025-01-08 10:48:12
361
原创 简单的对象池实现
一个简单的对象池的实现 一个简单的对象池的实现,预分配,加锁,线程安全 #ifndef ___OBJECT_POOL_ #define ___OBJECT_POOL_ #include <memory> #include <queue> #include <vector> #include <assert.h> #include <mutex> template< class T > class ObjectPool { public
2020-07-14 19:17:38
502
原创 C++ 邮件推送 (smtp+libcurl+openssl)
C++ 邮件推送 (smtp+libcurl+openssl) openssl 编译 Libcurl 编译 Smtp邮件推送 项目于中需要一个邮件定时推送功能,准备用smtp实现 本文中所有资源提供下载 开箱可编译源码+编译相关环境 https://download.youkuaiyun.com/download/weixin_48991609/12575990 直接可以使用的x64 libcurl+openssl文件 https://download.youkuaiyun.com/download/weixin.
2020-07-04 16:22:43
2338
原创 QSqlTableModel removeRow无法删除记录
QSqlTableModel removeRow无法删除记录 在使用 QSqlTableModel 进行removeRow 操作的时候(sqlite 数据库)editStrategy()是QSqlTableModel::OnManualSubmit,headerData 也正常响应,显示已删除 但是在submitAll的时候,数据一直还在,无法正常删除,经查 headerDataChanged 是正常的,说明,removeRow函数执行没有问题,对于提交,submitAll()返回的是true,但是数据
2020-07-02 16:30:27
2568
libcurl_openssl_x64_build_resource.rar
2020-07-04
libcurl_openssl_x64_generate.rar
2020-07-04
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅