12 2017 档案

mupdf编译snprintf冲突问题
摘要:mupdf-1.6-source\thirdparty\jbig2dec\config_win32.h //# define snprintf _snprintf 阅读全文

posted @ 2017-12-28 21:04 lydstory 阅读(130) 评论(0) 推荐(0) 编辑

有符号无符号bit转换
摘要:int main(){ unsigned short i = 65434; short p = i; printf("%d", p); int sp; scanf_s("%d", &sp); return 0;} 阅读全文

posted @ 2017-12-27 16:07 lydstory 阅读(146) 评论(0) 推荐(0) 编辑

邮槽
摘要:windows的一种单向通信方式 阅读全文

posted @ 2017-12-27 09:16 lydstory 阅读(78) 评论(0) 推荐(0) 编辑

查询yum包安装路径
摘要:rpm -ql php71-php yum install json yum install libcurl 阅读全文

posted @ 2017-12-22 14:25 lydstory 阅读(106) 评论(0) 推荐(0) 编辑

pkg_config找不到库
摘要:解决方法 假设libavutil默认安装时libavutil.pc安装到了 /usr/lib64/lib/pkgconfig/ 中,而 echo $PKG_CONFIG_PATH 结果中没有这个路径,这时要在当前tab中执行 PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr 阅读全文

posted @ 2017-12-22 14:08 lydstory 阅读(475) 评论(0) 推荐(0) 编辑

参看dll参数类型
摘要:http://blog.csdn.net/chinabinlang/article/details/7698459 验证 阅读全文

posted @ 2017-12-21 19:40 lydstory 阅读(129) 评论(0) 推荐(0) 编辑

dumpbin 查看dll中的导出函数
摘要:C:\Program Files (x86)\Microsoft Visual Studio 14.0>dumpbin -exports E:\20171110\Release\aa.dll https://www.cnblogs.com/dyllove98/archive/2013/06/20/3 阅读全文

posted @ 2017-12-21 19:09 lydstory 阅读(2402) 评论(0) 推荐(0) 编辑

eclipse安装automake
摘要:help->Install new software 阅读全文

posted @ 2017-12-21 16:15 lydstory 阅读(116) 评论(0) 推荐(0) 编辑

CString 作为参数执行都不执行
摘要:static int LoadUsbSDK(CString curpath ) win10系统下 CString 函数加载dll直接跳过 加载dll最好不要带参数 阅读全文

posted @ 2017-12-21 14:19 lydstory 阅读(133) 评论(0) 推荐(0) 编辑

程序指针引起异常
摘要:deviceStructClass* tmp = (DeviceStructClass *)m_ImgDevList.GetItemData(m_ImgDevList.GetSelectionMark()); if(tmp != NULL) { string devidstr; devidstr = 阅读全文

posted @ 2017-12-21 13:19 lydstory 阅读(134) 评论(0) 推荐(0) 编辑

samba配置
摘要:smbpasswd -a lyd //添加smb用户 阅读全文

posted @ 2017-12-20 01:18 lydstory 阅读(109) 评论(0) 推荐(0) 编辑

VMware下的Linux系统中Windows的共享目录,不支持创建软连接
摘要:【问题】 在编译VMware下的Linux系统对从Windows中共享过来的文件,进行编译的时候,遇到: ln: creating symbolic link XXXXXX : Operation not supported 【环境】 VmWare的Linux + Windows XP + vmhg 阅读全文

posted @ 2017-12-20 01:06 lydstory 阅读(1226) 评论(0) 推荐(0) 编辑

解决 cmake_symlink_library: System Error: Operation not supported
摘要:在编译uchardet时遇到这个错误: cmake_symlink_library: System Error: Operation not supported 创建链接不成功,要确认当前帐户下是否有权限在编译的目录中有创建链接的权限我使用vmware,在win7机器的共享目录中编译,无法创建链接, 阅读全文

posted @ 2017-12-20 00:34 lydstory 阅读(4068) 评论(0) 推荐(0) 编辑

git 解决fatal: Not a git repository
摘要:我用git add file添加文件时出现这样错误: fatal: Not a git repository (or any of the parent directories): .git 提示说没有.git这样一个目录,解决办法如下: git init就可以了! 阅读全文

posted @ 2017-12-20 00:20 lydstory 阅读(273) 评论(0) 推荐(0) 编辑

cmake重新编译
摘要:删除文件夹下的文件 rm CMakeCache.txt 重新编译即可 安装g++ yum install gcc-c++ 阅读全文

posted @ 2017-12-19 23:59 lydstory 阅读(1195) 评论(0) 推荐(0) 编辑

c++ 时间戳
摘要:#include <stdio.h>#include <time.h>int main(void){ time_t tick; struct tm tm; char s[100]; tick = time(NULL); tm = *localtime(&tick); strftime(s, size 阅读全文

posted @ 2017-12-13 17:59 lydstory 阅读(197) 评论(0) 推荐(0) 编辑

vc到vs2015消息函数
摘要:afx_msg LRESULT OnMyIconNotify(WPARAM wParam,LPARAM lParam); vc6 可以是void vs2015不可以 ON_MESSAGE(MYWM_NOTIFYICON, CMtextDlg::OnMyIconNotify) 前面必须加类名 阅读全文

posted @ 2017-12-13 16:01 lydstory 阅读(148) 评论(0) 推荐(0) 编辑

mysql 执行多线程临时方案
摘要:sqr::IDatabase *db=NULL;IDbConnection *conn = NULL;int main(int argc, char* argv[]) { db = GetDatabase(); conn =db->CreateConnection(); conn->execute( 阅读全文

posted @ 2017-12-13 11:12 lydstory 阅读(102) 评论(0) 推荐(0) 编辑

conn not captured
摘要:线程 和 事件中 变量 not captured 把变量定义为 static 或者添加为全局变量(放在main之前) 阅读全文

posted @ 2017-12-13 11:09 lydstory 阅读(78) 评论(0) 推荐(0) 编辑

网络字节序大小端
摘要:#include <stdio.h>#include <stdlib.h>int main(){ char ch = 'a'; int tmp =(int)ch; if( ch == *(char*)&tmp) printf("little end"); else printf("big end") 阅读全文

posted @ 2017-12-11 13:18 lydstory 阅读(76) 评论(0) 推荐(0) 编辑

抓包工具
摘要:选择捕获--》选中本地连接 输入协议端口 例如udp port 909 阅读全文

posted @ 2017-12-08 18:14 lydstory 阅读(64) 评论(0) 推荐(0) 编辑

mstsc本地驱动器
摘要:mstsc 可以把本地驱动器 挂载到服务器上 阅读全文

posted @ 2017-12-08 17:55 lydstory 阅读(159) 评论(0) 推荐(0) 编辑

cmake 头文件 库文件 链接库
摘要:原文地址:http://www.cnblogs.com/binbinjx/p/5626916.html 1. 添加头文件目录INCLUDE_DIRECTORIES 语法: 它相当于g++选项中的-I参数的作用,也相当于环境变量中增加路径到CPLUS_INCLUDE_PATH变量的作用。 2. 添加需 阅读全文

posted @ 2017-12-08 14:24 lydstory 阅读(447) 评论(0) 推荐(0) 编辑

makefile all
摘要:all:udps udpcudps:udpserv.c gcc -Wall -o udps udpserv.cudpc:udpclient.c gcc -Wall -o udpc udpclient.cclean: rm udpc udps 阅读全文

posted @ 2017-12-08 10:54 lydstory 阅读(126) 评论(0) 推荐(0) 编辑

netstat -ln
摘要:查看协议 bind port 阅读全文

posted @ 2017-12-07 22:45 lydstory 阅读(134) 评论(0) 推荐(0) 编辑

网络收发包测试
摘要:http://www.cppblog.com/jerryma/archive/2009/07/23/90947.html 归零:用最简单的程序测试 阅读全文

posted @ 2017-12-07 22:32 lydstory 阅读(200) 评论(0) 推荐(0) 编辑

python while语句写法
摘要:count=5 while count>0: print 'i love python' count=count-1 else: print 'over' 阅读全文

posted @ 2017-12-07 22:13 lydstory 阅读(214) 评论(0) 推荐(0) 编辑

python不用声明数据类型
摘要:本回答由电脑网络分类达人 系统推荐 本回答由电脑网络分类达人 系统推荐 阅读全文

posted @ 2017-12-07 22:04 lydstory 阅读(4462) 评论(0) 推荐(0) 编辑

c++之boost share_ptr
摘要:转载:https://www.cnblogs.com/welkinwalker/archive/2011/10/20/2218804.html 阅读全文

posted @ 2017-12-07 18:43 lydstory 阅读(106) 评论(0) 推荐(0) 编辑

C#的一些方法读程序转c++
摘要:参数 包含要复制的数据的 Array。 一个 32 位整数,它表示 sourceArray 中复制开始处的索引。 接收数据的 Array。 一个 32 位整数,它表示 destinationArray 中存储开始处的索引。 一个 32 位整数,它表示要复制的元素数目。 2. 阅读全文

posted @ 2017-12-07 16:21 lydstory 阅读(304) 评论(0) 推荐(0) 编辑

IPEndPoint
摘要:.NET框架用IPEndPoint 对象来表示一个特定的IP地址和端口的组合,应用该对象的场景多是在讲socket绑定到本地地址或者将socket绑定到非本地地址。 阅读全文

posted @ 2017-12-07 13:51 lydstory 阅读(294) 评论(0) 推荐(0) 编辑

结构体的强制类型转换
摘要:之前在写内存注入的时候,寻找IAT表都是手动计算的,后来发现可以直接用结构体,在结构体的赋值那里不是很懂,于是便写了个简单的程序来测试 阅读全文

posted @ 2017-12-07 11:08 lydstory 阅读(2780) 评论(0) 推荐(0) 编辑

网络包解析方法
摘要:struct HeatPdu{ UInt16 header; UInt8 Mac[6]; UInt16 RequestId; UInt8 Code; UInt8 SubCode; UInt16 DataLength; UInt8 data[0];}; 任何网络包的解析 --》 结构体 阅读全文

posted @ 2017-12-07 10:58 lydstory 阅读(139) 评论(0) 推荐(0) 编辑

64位网络字节序转换
摘要:UInt64 hl64ton(UInt64 host){ UInt64 ret = 0; UInt64 high,low; low = host & 0xFFFFFFFF; high = (host >> 32) & 0xFFFFFFFF; low = htonl(low); high = hton 阅读全文

posted @ 2017-12-06 23:40 lydstory 阅读(575) 评论(0) 推荐(0) 编辑

调试程序之添加法(类成员)
摘要:今天发现一个inline 引起undefined reference to 问题, 刚开始 以为是链接库 找不到的问题,以为是makfile 或者的 文件没有编译进去 调整2,3小时 不得解释 最终解决方法: 添加一个类的另一个方法,GetText() 调用居然成功,还是类成员函数的问题 最后去掉i 阅读全文

posted @ 2017-12-06 17:24 lydstory 阅读(128) 评论(0) 推荐(0) 编辑

inline 引起undefined reference to
摘要:main.cc:57: undefined reference to `evpp::udp::UdpDecoder::GetHeader()'collect2: error: ld returned 1 exit statusmake[2]: *** [bin/example_udpecho] Er 阅读全文

posted @ 2017-12-06 17:19 lydstory 阅读(717) 评论(0) 推荐(0) 编辑

Byte字节与位
摘要:位(bit)字节(byte)一字节是8位所以2Byte是16位二进制 阅读全文

posted @ 2017-12-06 00:20 lydstory 阅读(310) 评论(0) 推荐(0) 编辑

vs2015安装vax助手
摘要:https://jingyan.baidu.com/article/ea24bc399fccb9da62b331bd.html 阅读全文

posted @ 2017-12-06 00:08 lydstory 阅读(192) 评论(0) 推荐(0) 编辑

网络通信术语
摘要:heart beat 心跳 阅读全文

posted @ 2017-12-05 22:44 lydstory 阅读(132) 评论(0) 推荐(0) 编辑

WinScp获取一个文件
摘要:CD /d C:\Program Files (x86)\WinSCPWinSCP.exe /console /command "option batch continue" "option confirm off" "open sftp://lyd:1234568888@192.168.1.109 阅读全文

posted @ 2017-12-05 18:03 lydstory 阅读(276) 评论(0) 推荐(0) 编辑

WinScp自动执行脚本
摘要:我们经常使用WinSCP工具通过sftp协议上传获取文件,本文描述通过bat批量处理文件。 首先,我们打开dos命令窗口使用 cd \d :D\WinSCP 打开WinSCP安装目录 上传文件: winscp.exe /console /command "option batch continue" 阅读全文

posted @ 2017-12-05 17:32 lydstory 阅读(1187) 评论(0) 推荐(0) 编辑

局域网2台机器访问mysql服务器
摘要: 阅读全文

posted @ 2017-12-05 16:51 lydstory 阅读(126) 评论(0) 推荐(0) 编辑

关于MySQL在内网中使用另一台机器访问的问题
摘要:要在内网中访问另一台机器的MySQL数据库,需要两步操作 一是把运行MySQL的机器的3306端口打开,最好是能限制访问IP保证安全性。 二是更改MySQL账户的访问权限。MySQL的root账户默认是只允许localhost访问的。要更改权限,找到mysql数据库,user表下的Host项,更改成 阅读全文

posted @ 2017-12-05 16:40 lydstory 阅读(303) 评论(0) 推荐(0) 编辑

linux c++连接mysql编译问题
摘要: 阅读全文

posted @ 2017-12-05 15:42 lydstory 阅读(128) 评论(0) 推荐(0) 编辑

PHP has encountered an Access Violation at 7C94BB52 全新解决方法
摘要:转载:https://www.cnblogs.com/omiwa/articles/3534569.html 阅读全文

posted @ 2017-12-05 14:35 lydstory 阅读(113) 评论(0) 推荐(0) 编辑

g++报错原因分析:expected class-name before ‘{’ token
摘要:今天写程序的时候, 遇到这样一个错误expected class-name before ‘{’ token 最后发现原来是我的头文件声明没有加. 继承时不要忘记加基类的头文件 错误: 正确: 阅读全文

posted @ 2017-12-01 19:03 lydstory 阅读(848) 评论(0) 推荐(0) 编辑

lsusb
摘要:lsusb命令硬件管理 lsusb命令用于显示本机的USB设备列表,以及USB设备的详细信息。 lsusb命令是一个学习USB驱动开发,认识USB设备的助手,推荐大家使用,如果您的开发板中或者产品中没有lsusb命令可以自己移植一个,放到文件系统里面。 语法 lsusb(选项) 选项 -v:显示US 阅读全文

posted @ 2017-12-01 12:10 lydstory 阅读(251) 评论(0) 推荐(0) 编辑

mysql的头文件
摘要:yum install mysql /usr/include/mysql yum install mysql-devel 阅读全文

posted @ 2017-12-01 09:45 lydstory 阅读(337) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示