会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wjshan0808
Learn from yesterday, Live for today, For a better tomorrow.
————wjshan0808
随笔- 297 文章- 0 评论- 4 阅读-
28万
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
···
20
下一页
2018年2月3日
c++ 宏定义调用不定参数的函数
摘要: 假设有一下函数 则宏定义如下 然后调用该函数如下 输出如下
阅读全文
posted @ 2018-02-03 16:16 wjshan0808
阅读(3493)
评论(0)
推荐(0)
编辑
C++ 调用Python文件方法传递字典参数并接收返回值
摘要: 首先本地需要安装有Python环境,然后在c++工程中包含Python的头文件,引用Python的lib库。 pyscript.py脚本示例 附加 返回值 Tuple-List 解析 在线文档 https://docs.python.org/
阅读全文
posted @ 2018-02-03 15:48 wjshan0808
阅读(12080)
评论(0)
推荐(0)
编辑
2017年11月30日
ORA-12154: TNS:could not resolve the connect identifier specified. Solved.
摘要: 进入系统属性页面 并添加系统环境变量 其中${path} = 从http://www.oracle.com/technetwork/topics/winx64soft-089540.html 下载的 instantclient-basic-windows.x64-12.2.0.1.0.zip 解压目
阅读全文
posted @ 2017-11-30 15:53 wjshan0808
阅读(282)
评论(0)
推荐(0)
编辑
2017年8月11日
rhel7 rpmbuild 制作二进制程序安装包(.rpm) 简单示例
摘要: 下载rpm-build: 如果上述方式无法安装(没配置网络源,虚拟机下是安装媒介源) 可以用下列方式下载后再安装(实践结果可能版本问题引起的缺少太多的*.so,不可行) 使用此方式,配置个可用的RHEL7(=CentOS7)(163)网络源,具体做法 http://mirrors.163.com/.
阅读全文
posted @ 2017-08-11 00:52 wjshan0808
阅读(1639)
评论(0)
推荐(0)
编辑
2017年8月1日
C++版的网络数据包解析策略(升级版)
摘要: 初版:http://www.cnblogs.com/wjshan0808/p/6580638.html 说明:在实现了对应的接口后该策略可以适合绝大多数的网络数据包结构 首先,是三个接口 IProduceProxy.h #ifndef _I_PRODUCE_PROXY_H_ #define _I_P
阅读全文
posted @ 2017-08-01 17:16 wjshan0808
阅读(1067)
评论(0)
推荐(0)
编辑
2017年7月18日
C++ 自动资源释放的单例模式
摘要: 代码思想就是程序结束时会自动释放静态/全局资源时删除单例资源。
阅读全文
posted @ 2017-07-18 13:51 wjshan0808
阅读(604)
评论(0)
推荐(0)
编辑
2017年6月24日
C++ ACE 动态加载链接库
摘要: 添加头文件 定义函数接口 加载动态库(dll/so) 调用动态库函数
阅读全文
posted @ 2017-06-24 14:23 wjshan0808
阅读(949)
评论(0)
推荐(0)
编辑
2017年6月22日
Linux下C++动态加载so 调用方法
摘要: Windows 下的 C++动态加载DLL调用方法 文献参考 http://man7.org/linux/man-pages/man0/dlfcn.h.0p.html http://man7.org/linux/man-pages/man3/dlopen.3.html http://tldp.org
阅读全文
posted @ 2017-06-22 13:04 wjshan0808
阅读(13667)
评论(0)
推荐(1)
编辑
2017年6月11日
C++ 不定参数"..."的使用
摘要: #include #include #include #define LEN_MSG_BUFFER 128 using namespace std; void Message(int nLevel, const char *szFormat, ...) { char* szData = new char[LEN_MSG_BUFFER](); t...
阅读全文
posted @ 2017-06-11 17:04 wjshan0808
阅读(1144)
评论(0)
推荐(0)
编辑
2017年6月10日
rhel7 编写CMakeList.txt编译运行MySQL官方例子代码
摘要: 注:若需要参考rhel7上安装MySQL 请 点击此处 1.下面MySQL链接库版本用到了boost(若需要请到官网下载最新链接库和文档和C++连接数据库操作示例) Red Hat Enterprise Linux 7 / Oracle Linux 7 (x86, 64-bit), Compress
阅读全文
posted @ 2017-06-10 19:01 wjshan0808
阅读(1026)
评论(0)
推荐(0)
编辑
2017年6月1日
记录下 rhel 7 安装MySQL 并重置root密码
摘要: 注意官方是很不提倡用root的。 下载并安装MySQL 最新的rpm地址 https://dev.mysql.com/downloads/repo/yum/ 重置root密码
阅读全文
posted @ 2017-06-01 18:35 wjshan0808
阅读(396)
评论(0)
推荐(0)
编辑
2017年3月28日
杨辉三角 可以不用二维数组的
摘要: #include #include using namespace std; int main(int argc, char* args[]) { //便于窗体显示 system("mode con cols=128 lines=32"); int nLine; //cin >> nLine; //test nLine = 11...
阅读全文
posted @ 2017-03-28 17:19 wjshan0808
阅读(432)
评论(0)
推荐(0)
编辑
2017年3月24日
一个Window/Linux(Fedora测试平台)的CPU,磁盘,内存,PC,进程相关信息采集功能
摘要: 说明:采用的是Multi-Byte Character Set,不支持Unicode。 Peer2PeerData.h #ifndef _PEER_2_PEER_DATA_H #define _PEER_2_PEER_DATA_H #include <cstring> /* unsigned lon
阅读全文
posted @ 2017-03-24 17:15 wjshan0808
阅读(569)
评论(0)
推荐(0)
编辑
一个ACE 架构的 Socket Client
摘要: .h .cpp /************************************************************** * Filename: TcpClient.cpp * Copyright: Shanghai X Co., Ltd. * * Description: T
阅读全文
posted @ 2017-03-24 17:02 wjshan0808
阅读(874)
评论(0)
推荐(0)
编辑
一个ACE 架构的 C++ Timer
摘要: .h .cpp
阅读全文
posted @ 2017-03-24 16:47 wjshan0808
阅读(583)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
···
20
下一页
小仓鼠
昵称:
wjshan0808
园龄:
11年11个月
粉丝:
8
关注:
0
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
更多链接
最新随笔
1.重置Navicat Premium试用天数
2.求解基本四则字符串算术表达式
3.FB(S1C1): PInvokeStackImbalance对PInvoke函数的调用导致堆栈不对称
4.实战演练T-SQL公用表表达式(CTE)
5.C++汉诺塔(形象化移动过程)
6.读书笔记——汇编语言 第四版 王爽著
7.用BAT使用FTP命令上传文件
8.BAT自动复制最新插件至运行程序
9.项目使用Makefile编译成静态库,动态库,可执行文件的小记模板
10.打包发布 Qt Quick/Widgets 程序
积分与排名
积分 - 206666
排名 - 5833
随笔分类
(300)
ASM(1)
C#(101)
C/C++(45)
FB(1)
Linux/Unix(30)
Oracle(38)
Others(1)
T-SQL(1)
Web(26)
WPF(1)
Xamarin(5)
计算机(30)
逻辑思维训练(8)
算法设计/数据结构(12)
随笔档案
(297)
2022年11月(1)
2022年10月(1)
2022年8月(1)
2022年1月(2)
2021年12月(1)
2021年9月(2)
2020年12月(1)
2019年9月(1)
2018年7月(1)
2018年6月(1)
2018年5月(2)
2018年4月(1)
2018年2月(2)
2017年11月(1)
2017年8月(2)
2017年7月(1)
2017年6月(5)
2017年3月(5)
2017年2月(1)
2016年12月(1)
2016年10月(2)
2016年9月(4)
2016年8月(3)
2016年2月(1)
2016年1月(7)
2015年11月(1)
2015年9月(2)
2015年8月(2)
2015年7月(3)
2015年5月(1)
2015年4月(1)
2015年3月(9)
2015年1月(77)
2014年12月(2)
2014年11月(4)
2014年8月(1)
2014年6月(1)
2014年5月(2)
2014年4月(5)
2014年3月(7)
2014年2月(12)
2014年1月(4)
2013年12月(1)
2013年11月(4)
2013年9月(28)
2013年8月(2)
2013年7月(1)
2013年6月(17)
2013年5月(18)
2013年4月(41)
2013年3月(1)
更多
阅读排行榜
1. C++动态加载DLL调用方法(18921)
2. Linux下C++动态加载so 调用方法(13667)
3. 解决 linux [Fedora] 升级 导致VMware启动出现"before you can run vmware workstation, serveral modules must be complied and loaded into the runing kernel" 而无法卸载(13132)
4. C++ 调用Python文件方法传递字典参数并接收返回值(12080)
5. 解决 No resource found that matches the given name (at 'icon' with value '@drawable/icon') 问题(10035)
评论排行榜
1. C# 提供两种切割圆形图片的方式(2)
2. Winform TreeView 节点拖动(1)
3. 泛型<T>,是你肿莫了,还是我错了...(1)
推荐排行榜
1. C# 提供两种切割圆形图片的方式(2)
2. Linux下C++动态加载so 调用方法(1)
3. 一个C++版的网络数据包解析策略(1)
4. 对ODB管理工具(EM,SQL Plus,Net Manager,Net Configuration Assistant,Administration Assistant for Windows,Database Configuration Assistant......)的简单认识(1)
最新评论
1. Re:C# 提供两种切割圆形图片的方式
事实证明还是waysOne好用,哈哈,谢谢
--小白点1
2. Re:Winform TreeView 节点拖动
ASp.Net页面使用一样的吗?
--何木槿
3. Re:C# 提供两种切割圆形图片的方式
非常感谢,谢谢你.
--南宫萧尘
4. Re:泛型<T>,是你肿莫了,还是我错了...
T是泛型,代表了一个类型,但不能直接当作类型使用。所以改一下代码就好了。改成对比了类型是否相同,如: if (typeof(T).Equals(typeof(Int32))) { return Int...
--luacloud
点击右上角即可分享