摘要: 今天开始成为技术girl 阅读全文
posted @ 2018-09-28 15:12 amanda_zw 阅读(175) 评论(0) 推荐(0) 编辑
摘要: 【C++小技巧】 #ifdef _DEBUG imwrite("binary.jpg", img);#endif 清理内存.release();chars_set.clear();chars_set.shrink_to_fit(); 阅读全文
posted @ 2018-09-28 15:10 amanda_zw 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 直接获取内存地址,不需要定义指针类型的方法,(当然也就不需要释放了)USES_CONVERSION; if (myFun1) { CString _input; m_edit_input.GetWindowTextW(_input); if (_input.GetLength() >0) { CSt 阅读全文
posted @ 2018-09-28 15:08 amanda_zw 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 调试方法有很多 介绍一种奇怪的?调试方法哈哈 通过WriteLog记录返回值查看返回结果。 string str_log;stringstream ssteam;ssteam << "坐标X:";ssteam << location.x;str_log = ssteam.str();cRecNumb 阅读全文
posted @ 2018-09-28 14:58 amanda_zw 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 【C++】创建动态库 有很多方法,这个只是其中一种 比较简洁的方法。 char* __stdcall correction(char* str)char *_result = new char[search_word.length() + 1];strcpy_s(_result,search_wor 阅读全文
posted @ 2018-09-28 14:56 amanda_zw 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 自己定义的头文件必须要用“***.h”系统头文件必须要用<***.h>stdafx.h 必须放在所有头文件的最前面(如果不放,debug版本没有问题;release版本有问题,会报错) 阅读全文
posted @ 2018-09-28 14:54 amanda_zw 阅读(144) 评论(0) 推荐(0) 编辑