02 2014 档案

摘要:代码一篇,暂时没发现bug: 1 // vm_mgr.cpp : Defines the exported functions for the DLL application. 2 // 3 4 #include "stdafx.h" 5 6 #include 7 #include 8 #include 9 #include 10 #include "../common/assist.h" 11 #include"../error_no/error_no.h" 12 #include "../Log/log.h" 阅读全文
posted @ 2014-02-20 22:47 重归混沌 阅读(374) 评论(0) 推荐(0)
摘要:我一向认为在写代码时,void *滥用是有问题的,在最近的一次代码中, 有类似这样一段代码:1 int send(void *buff, unsigned long size);2 3 int xx_func(char *buff, unsigned long size)4 {5 unsigned send_size;6 .........7 8 send(&buff, send_size);9 return 0;10 } 暂且不论为什么作者会错写成取地址,但其原意是想发送经过处理后的buff里面的内容, 但... 阅读全文
posted @ 2014-02-15 19:32 重归混沌 阅读(362) 评论(0) 推荐(0)