09 2012 档案

摘要:转自:http://blog.csdn.net/hejianhua/article/details/2495606写MFC的DLL的时候,总会在自动生成的代码框架里看到提示,需要在每一个输出的函数开始添加上AFX_MANAGE_STATE (AfxGetStaticModuleState())。一直不明白这样做的含义,也一直没有这样做,而且代码也工作得好好的,所以感觉这好像一句废 话。 最近的项目中,需要在DLL里使用MFC生成界面,这才发现一旦资源放在不同的动态库里,而且还和多线程搅和在一起的时候,事情就变 得异常的复杂,以前对MFC的一知半解已经不足与应付了。程序莫名的崩溃,莫名的ASSE 阅读全文
posted @ 2012-09-14 09:58 杂烩饭2012
摘要:转自:http://blog.csdn.net/gisfarmer/article/details/3973936http://hi.baidu.com/taney/item/89dd52fb40d75ec00cd1c8d3vector的使用第一部分 使用入门vector可用于代替C中的数组,或者MFC中的CArray,从许多说明文档或者网上评论,一般一致认为应该多用vector,因为它的效率更高,而且具备很好的异常安全性。而且vector是STL推荐使用的默认容器,除非你知道你有特殊需要,使用vector不能满足你的需求,例如需要容器在head和tail高效的插入和删除,或者在任何位置高效的 阅读全文
posted @ 2012-09-12 17:19 杂烩饭2012
摘要:转自:http://shandian.biz/2103.htmlVC\MFC当中CString、string、char、char*、char数组、int等类型之间的转换令人晕头转向,闪电博客特地搜集多篇文章资料,利用代码实例等清晰的理清他们之间的关系和如何转换,其实非常简单。这些文章基本上是互相独立的,看完后,闪电博客相信你会用的很容易,文章值得大家收藏。第一篇文章:VC之CString,wchar_t,int,string,char*之间的转换1. CString 转 wchar_tCString path = "asdf"; wchar_t wstr[256] = pa 阅读全文
posted @ 2012-09-12 17:15 杂烩饭2012
摘要:转自:http://blog.sina.com.cn/s/blog_617c05b001015baw.html错误回放一:A problem occurred while installing selected Windows SDK components.Installation of the "Microsoft Windows SDK for Windows 7 Compilers for x86" product has reported the following error: 安装时发生严重错误Please attempt to resolve the prob 阅读全文
posted @ 2012-09-11 00:49 杂烩饭2012
摘要:转自:http://blog.csdn.net/lyd_253261362/article/details/4450202DWORD WaitForMultipleObjects( DWORD nCount, // number of handles in the handle array CONST HANDLE *lpHandles, // pointer to the object-handle array BOOL fWaitAll, // wait flag DWORD dwMilliseconds // time-o... 阅读全文
posted @ 2012-09-04 18:03 杂烩饭2012
摘要:以下分析基于 wpa_supplicant 0.5.11 版本1、wpa_supplicant简介 wpa_supplicant is an implementation of the WPA Supplicant component,i.e., the part that runs in the client stations. It implements WPA keynegotiation with a WPA Authenticator and EAP authentication withAuthentication Server. In addition, it controls. 阅读全文
posted @ 2012-09-02 22:27 杂烩饭2012
摘要:转自:http://blog.chinaunix.net/uid-20273473-id-3128151.htmlWPA_SUPPLICANT的程序的生命就是在运行一个EVENT LOOP, 等待各种Event的到来,然后做相应的处理。因此分析EVENT LOOP的实现能起到提纲挈领的作用。1. 数据结构:见下图struct eloop_data结构体是一个统领全局的数据结构,只有一个实例,即Line 75:点击(此处)折叠或打开static struct eloop_data eloop;要处理的Event有三大种类型:Socket事件,Timeout事件,Signal事件.其中Socket 阅读全文
posted @ 2012-09-02 21:01 杂烩饭2012
摘要:转自:http://zhanying999666.blog.163.com/blog/static/16528528020101038572111/Wpa_gui是一个基于Wpa_supplicant的无线连接管理工具,可以简单的认为是由wpa_supplicant+Qt的一个小型软件,它可以运行在linux,Windows及Unix操作系统下,作为配置连接无线网络使用。目前,在最新的Ubuntu系统下面,已经自动集成了该软件。其中具体界面可以查看:http://hostap.epitest.fi/wpa_supplicant/wpa_gui.html如果要获取该软件,可以去网站http:// 阅读全文
posted @ 2012-09-02 20:58 杂烩饭2012