- 博客(28)
- 收藏
- 关注
原创 utf8-GBK相互转换:
std::string GbkToUtf8(const char* src_str){ int len = MultiByteToWideChar(CP_ACP, 0, src_str, -1, NULL, 0); wchar_t* wstr = new wchar_t[len + 1]; memset(wstr, 0, len + 1); MultiByteToWideChar(CP_ACP, 0, src_str, -1, wstr, len); len = WideCharToMulti
2024-03-11 18:40:30
517
1
原创 C++解析json,解析jsonarry,使用rapidjson库
1.使用字符串存储json:"age": 30,)";注意事项:如果json中包含[],则视为json数组,需要遍历解析:constValue"data";forSizeTypei = 0;i++) {constValuei][;constValue"info";forSizeTypej = 0;j++) {constValuej;std::stringint"type_id".GetInt();std::cout
2024-03-11 18:30:24
491
1
原创 cul库的使用,c++如何使用http通信
win32项目:CURL_STATICLIB;%(PreprocessorDefinitions)需要添加预处理器定义:CURL_STATICLIB。静态库的加载,lib文件夹里面只有。需要额外添加其他几个静态库。
2024-03-11 18:28:14
287
1
原创 cv::Mat转为CBitmap,MFC显示picture control控件显示CBitmap。
2.MFC 中picture control控件显示bitmap。
2024-03-11 18:22:17
682
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人