工具
随便记记
@小明1010
大道至简
展开
-
C++__RapidJson
//例1:Json解析#include "rapidjson/rapidjson.h"#include "rapidjson/document.h"#include "rapidjson/reader.h"#include "rapidjson/writer.h"#include "rapidjson/stringbuffer.h"#include "rapidjson/prettywriter.h"using namespace rapidjson;{ ... .原创 2021-02-07 09:23:15 · 256 阅读 · 1 评论 -
log4cxx__日志库使用
//头文件(文件夹log4cxx)、log4cxx.lib、log4cxx.dll、log4cxx.properties1.设置配置文件log4cxx.properties2.使用头文件,命名空间#include "log4cxx/propertyconfigurator.h"using namespace log4cxx;3.在Qt中可以使用qInstallMessageHandler自定义消息处理例子:#include "mainwindow.h"#include <Q.原创 2021-01-23 10:14:53 · 305 阅读 · 0 评论 -
动态库__只有dll没有lib链接库的第三方库如何使用
//参考博客:https://www.cnblogs.com/zzugyl/p/3571644.html//前提:虽然没有lib,但是需要知道函数接口。1.方法1:动态加载头文件:#include <Windows.h>伪代码:typedef bool(*PmonInit)(EventDelegate e, int tracelevel, bool isAsync); //先声明函数指针HINSTANCE hDll;hDll = LoadLibrary("pmon_li.原创 2021-01-09 11:24:52 · 2768 阅读 · 0 评论 -
cmd__修改字体为Consolas
大家使用cmd时有没有遇到这种情况cmd默认字体,经常看错1.中英文的分号;;2.还有<> ()小记一下修改字体为Consolas。方法:1.桌面新建一个txt文件,后缀名改为reg。例如1.reg,写入下面代码保存->退出->双击运行即可Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe]"Code..原创 2020-09-02 20:47:27 · 697 阅读 · 1 评论