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"
阅读全文
摘要:我一向认为在写代码时,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里面的内容, 但...
阅读全文

浙公网安备 33010602011771号