上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页
  2018年12月16日
摘要: 编译好gcc6.4后 要使用的话 需要配置一下环境比如我的安装路径是/root/bin 下面的内容参考了这个地址https://www.cnblogs.com/succeed/p/6204438.html真是太感谢了 阅读全文
posted @ 2018-12-16 18:49 弘道者 阅读(438) 评论(0) 推荐(0)
摘要: ffmpeg -f dshow -i audio="virtual-audio-capturer" -f dshow -i audio="麦克风 (High Definition Audio 设备)" -filter_complex amix=inputs=2:duration=first:dropout_transition=2 -f dshow -i video="xthkCamera" -... 阅读全文
posted @ 2018-12-16 15:46 弘道者 阅读(2476) 评论(0) 推荐(0)
  2018年12月15日
摘要: 下面是官方demo, 给人耳目一新的感觉,以前是总是把c++当成有类功能的C,看完这个感觉不用自己造轮子了,还是要跟上时代的步伐 直接拿来使用也是没有问题的,太爽了 阅读全文
posted @ 2018-12-15 17:42 弘道者 阅读(769) 评论(0) 推荐(0)
摘要: 用Vs2005编译的openssl,在vs2015中使用就悲剧了,报如下错误 解决方案如下 阅读全文
posted @ 2018-12-15 14:05 弘道者 阅读(1948) 评论(0) 推荐(0)
  2018年12月13日
摘要: 私钥加密的部分内容,需要用公钥解密下面的实例代码,由于私钥加密后的字符串有不可打印字符,所以程序里面进行了base64,要用的时候先解dec base64 再传递给函数 进行解密 // 私钥解密 std::string rsa_pri_decrypt(const std::string &ciphe 阅读全文
posted @ 2018-12-13 16:47 弘道者 阅读(4894) 评论(0) 推荐(0)
摘要: 不管Windows还是linux都是需要安装好perl环境的 Windows步骤 1.解压openssl-1.0.1u.tar.gz 2.使用Vs2005命令行工具进入解压后的目录 3.执行如下命令 然后编译好的库和头文件就在d:/openssl-bin linux步骤 1.解压openssl-1. 阅读全文
posted @ 2018-12-13 15:47 弘道者 阅读(2052) 评论(0) 推荐(0)
  2018年12月11日
摘要: 获取当前毫秒数 主要是打印日志的时候用到 头文件为ctime 阅读全文
posted @ 2018-12-11 15:11 弘道者 阅读(2389) 评论(0) 推荐(0)
  2018年12月9日
摘要: 这样就生成秘钥对了,其中pri.pem是私钥,pub.pem是公钥 比如当前目录有一个文件叫test.txt 加密test.txt 解密文件 阅读全文
posted @ 2018-12-09 20:43 弘道者 阅读(263) 评论(0) 推荐(0)
  2018年12月5日
摘要: bool IP2Num(const char* ip,struct in_addr& addr) { for(int i=0;i=ip[i])continue; return false; } int ch[4]={0}; if(4!=sscanf(ip,"%d.%d.%d.%d",&ch[0],&ch[1],&ch[2],&ch[3]))ret... 阅读全文
posted @ 2018-12-05 22:26 弘道者 阅读(269) 评论(0) 推荐(0)
摘要: JNI崩溃了,系统日志会打印堆栈信息,所以第一步就是取日志 adb shell logcat -v threadtime >>d:/log.txt 然后找到日志里面的关键字backtrace例如我的日志是这样的 12-04 06:14:38.362 3773 3773 F DEBUG : backt 阅读全文
posted @ 2018-12-05 08:32 弘道者 阅读(1330) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 24 下一页