2017年12月13日

摘要: #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 阅读(203) 评论(0) 推荐(0)
摘要: afx_msg LRESULT OnMyIconNotify(WPARAM wParam,LPARAM lParam); vc6 可以是void vs2015不可以 ON_MESSAGE(MYWM_NOTIFYICON, CMtextDlg::OnMyIconNotify) 前面必须加类名 阅读全文
posted @ 2017-12-13 16:01 lydstory 阅读(152) 评论(0) 推荐(0)
摘要: 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 阅读(106) 评论(0) 推荐(0)
摘要: 线程 和 事件中 变量 not captured 把变量定义为 static 或者添加为全局变量(放在main之前) 阅读全文
posted @ 2017-12-13 11:09 lydstory 阅读(92) 评论(0) 推荐(0)

2017年12月11日

摘要: #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 阅读(87) 评论(0) 推荐(0)

2017年12月8日

摘要: 选择捕获--》选中本地连接 输入协议端口 例如udp port 909 阅读全文
posted @ 2017-12-08 18:14 lydstory 阅读(78) 评论(0) 推荐(0)
摘要: mstsc 可以把本地驱动器 挂载到服务器上 阅读全文
posted @ 2017-12-08 17:55 lydstory 阅读(168) 评论(0) 推荐(0)
摘要: 原文地址:http://www.cnblogs.com/binbinjx/p/5626916.html 1. 添加头文件目录INCLUDE_DIRECTORIES 语法: 它相当于g++选项中的-I参数的作用,也相当于环境变量中增加路径到CPLUS_INCLUDE_PATH变量的作用。 2. 添加需 阅读全文
posted @ 2017-12-08 14:24 lydstory 阅读(452) 评论(0) 推荐(0)
摘要: 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 阅读(131) 评论(0) 推荐(0)

2017年12月7日

摘要: 查看协议 bind port 阅读全文
posted @ 2017-12-07 22:45 lydstory 阅读(170) 评论(0) 推荐(0)

导航