c++
文章平均质量分 77
bubuxindong
这个作者很懒,什么都没留下…
展开
-
log4cpp qt 交叉编译
官网下载 github Qt log4cpp 交叉编译 环境:ubuntu 1.github下载 默认编译方式 wget https://github.com/orocos-toolchain/log4cpp/archive/v2.9.1.tar.gz //进入目录 mkdir cmake-build cd cmake-build cmake .. && make ...原创 2019-12-12 14:50:08 · 1006 阅读 · 0 评论 -
pipe server client通信
工程环境:vs2017字符集为unicode, 所有用wchar_t;如果为多字符集,则用char. Server与Client的管道名称需一致。工程中加入InitializeCriticalSection(cs); 的话,出现问题,所以暂时没有使用。 1. // pipeServer.cpp: 定义控制台应用程序的入口点。 2. // 3. 4. #include "stdaf...原创 2018-06-28 15:06:51 · 923 阅读 · 0 评论 -
windows 创建目录
绝对路径就不举例了 相对路径: #include <direct.h> //for _mkdir #include <io.h> //for _access std::string dir = "./tmp"; void CreateDirectory() { if (_access(m_dir.c_str(),0) == -1) // if the...原创 2019-01-05 16:08:44 · 1963 阅读 · 0 评论