05 2019 档案

摘要:在string里面string.c_str();函数把string转换为了const char*但是有的函数只需要char*我放const char*就不OK了.如何把const char*转为char*. 阅读全文
posted @ 2019-05-15 12:10 damoying 阅读(3319) 评论(0) 推荐(1)
摘要:VS2015+QT环境,加载dll函数loadlibrary,使用宽字符参数。路径有汉字总加载失败,于是先将汉字转化再加载dll,成功。 std::string ConvertUtf8ToGbk(const char* srcStr){ //utf-8转换为unicode u32 dwStrLen 阅读全文
posted @ 2019-05-15 11:05 damoying 阅读(3154) 评论(0) 推荐(0)
摘要:参见:E:\svnroot\20190408_KDM201_D02P_V1R3\30-Client\D02PDW\source\cu.cpp connect(this, SIGNAL(signalShowError(u32, std::string)), this, SLOT(ShowError(u 阅读全文
posted @ 2019-05-06 15:16 damoying 阅读(4520) 评论(0) 推荐(0)