<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[I Habit I DO]]></title><description><![CDATA[Keep habit]]></description><link>https://blog.youkuaiyun.com/debehe</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; debehe]]></copyright><item><title><![CDATA[C＃中获取版本号的方法]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5954126</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5954126</guid><author>debehe</author><pubDate>Wed, 20 Oct 2010 14:35:00 +0800</pubDate><description><![CDATA[转载自：http://www.cnblogs.com/gavincome/archive/2007/12/15/995665.html

备忘，第3种方法最通用，.NETCF35也可用
]]></description><category></category></item><item><title><![CDATA[Why .NET Compact Framework fails to call some HTTPS web servers]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5874208</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5874208</guid><author>debehe</author><pubDate>Thu, 09 Sep 2010 20:23:00 +0800</pubDate><description><![CDATA[<br />M8上用HttpWebRequest会出现失败的一个原因<br /> <br />Why .NET Compact Framework fails to call some HTTPS web servers<br />
http://blogs.msdn.com/b/andrewarnottms/archive/2007/11/19/why-net-compact-framework-fails-to-call-some-https-web-servers.aspx?PageIndex=2#]]></description><category></category></item><item><title><![CDATA[VS2008下的CAtlRegExp]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5853240</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5853240</guid><author>debehe</author><pubDate>Tue, 31 Aug 2010 15:29:00 +0800</pubDate><description><![CDATA[<br />vs2008下找不到atlrx.h了，为什么？<br /><br />
因为ATL Server在2007年开源了，这部分代码不再直接包含在VS2008下面，如果需要使用的话需要自己到CodePlex上下载。<br /><br />
相关信息参考：<br />
ATL Server: Visual C++ shared source software<br />
The Visual C++ team is very pleased to announce our plans to re]]></description><category></category></item><item><title><![CDATA[win7右键管理无法打开解决方案]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5807553</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5807553</guid><author>debehe</author><pubDate>Thu, 12 Aug 2010 17:37:00 +0800</pubDate><description><![CDATA[<br />修改注册表HKEY_CLASSES_ROOT/CLSID/{20D04FE0-3AEA-1069-A2D8-08002B30309D} /shell/command中的"%windir%/system32/CompMgmtLauncher.exe"为"%windir% /system32/mmc.exe /s %windir%/system32/compmgmt.msc"即可
<br /> <br />不是第一次遇到了，不记得之前有没有记录过，备忘。]]></description><category></category></item><item><title><![CDATA[NSIS检查磁盘空间不足]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5749269</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5749269</guid><author>debehe</author><pubDate>Tue, 20 Jul 2010 12:33:00 +0800</pubDate><description><![CDATA[<br />NSIS检查磁盘空间不足，转载自：http://stackoverflow.com/questions/989172/how-can-i-check-free-space-during-a-nullsoft-silent-install<br /><br />!include FileFunc.nsh 
!insertmacro DriveSpace 
 
Name "CheckFreeSpace" 
OutFile "C:/CheckFreeSpace.exe" 
 
Instal]]></description><category></category></item><item><title><![CDATA[dll方法调用引发的CrtIsValidHeapPointer错误]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5672362</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5672362</guid><author>debehe</author><pubDate>Tue, 15 Jun 2010 15:15:00 +0800</pubDate><description><![CDATA[从CrtIsValidHeapPointe的实现代码处我们可以得知，这个函数不仅检查了空指针的情况，更重要的是检查了指针地址的有效性。

我遇到的问题：
释放内存时，弹出assert，报错的函数就是上面提到的这个：CrtIsValidHeapPointe。
可是为什么会报错呢？CrtIsValidHeapPointe的注释上说明了情况：如果要释放的内存地址不是在当前控制的堆的地址范围内，也会报这样的错误。

问题分析：
1、我的实现是在exe中调用dll的一个方法，这个方法里面里面会分配若干内]]></description><category></category></item><item><title><![CDATA[M8下的WTL(Windows Template Library)开发]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5559558</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5559558</guid><author>debehe</author><pubDate>Wed, 05 May 2010 14:53:00 +0800</pubDate><description><![CDATA[-1、参考文章：1、Windows Mobile和Wince(Windows Embedded CE)下的WTL(Windows Template Library)开发http://www.cnblogs.com/procoder/archive/2009/06/03/1495002.html2、WTL8.1 CE部分在VS2008下安装http://hi.baidu.com/]]></description><category></category></item><item><title><![CDATA[Windows下编译curlpp]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5496702</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5496702</guid><author>debehe</author><pubDate>Sat, 17 Apr 2010 15:01:00 +0800</pubDate><description><![CDATA[curlpp是libcurl的C++封装，由于作者本身并不使用Visual Studio(可能并不贴切，但总之作者提供的vs工程并无法直接编译通过并运行)，所以在Windows下的构建并不是解压后就可以编译通过。我自己捣鼓了一个多小时，才发现原来是这么回事。于是将编译的过程和注意事项分享如下。1.curl下载从这个http://curl.haxx.se/download.html页面下载，我下]]></description><category></category></item><item><title><![CDATA[Visual Studio影响生成文件大小的编译选项]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5480337</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5480337</guid><author>debehe</author><pubDate>Tue, 13 Apr 2010 11:32:00 +0800</pubDate><description><![CDATA[ 早上有大牛来帮我改了下VS2008的工程设置，编译后的文件大小有明显变化。看了下，他改了下面这四个： 在C/C++->Code GenerationStringPooling="true"BufferSecurityCheck="false" 在C/C++->LanguageRuntimeTypeInfo="false"在Linker->Advanced Ra]]></description><category></category></item><item><title><![CDATA[无边框对话框的实现总结]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5470490</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5470490</guid><author>debehe</author><pubDate>Sat, 10 Apr 2010 15:10:00 +0800</pubDate><description><![CDATA[0、前言自绘贴图的对话框，我自己习惯上的做法是创建一个无边框的Dialog，这样你就可以不去考虑NC区域的计算，界面布局的实现上会方便很多。当然这样也带来一些副作用，下面我就将我解决这些问题的经验分享给大家。请注意这里讨论的对话框，在资源视图中的属性：Border一项为None，这是本文的前提条件。 1、对话框在任务栏上只有图标没有标题文字这个最好办，在OnInitDialog中调]]></description><category></category></item><item><title><![CDATA[禁止webbrowser脚本，禁止webbrowser缓存，我在WTL下测试正常]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5359433</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5359433</guid><author>debehe</author><pubDate>Tue, 09 Mar 2010 11:28:00 +0800</pubDate><description><![CDATA[源文章来自：禁止webbrowser弹出窗口，禁止webbrowser读取缓存http://blog.youkuaiyun.com/wuhuiran/archive/2009/04/07/4055555.aspx 写在这里给自己备忘下， 1、关于屏蔽脚本错误：其实设置webbrowser的Silent属性为TRUE对屏蔽脚本错误框是有用的，文章中的第一段可以不用。 我在WTL下测试正常]]></description><category></category></item><item><title><![CDATA[Windows目录的环境变量名 Recognized Environment Variables]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5320195</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5320195</guid><author>debehe</author><pubDate>Tue, 23 Feb 2010 16:56:00 +0800</pubDate><description><![CDATA[常用几个，其他的不常用老忘记，备忘： Recognized Environment Variableshttp://technet.microsoft.com/en-us/library/cc749104(WS.10).aspxVariables that are processed for the operating system and in the context o]]></description><category></category></item><item><title><![CDATA[推荐：Shell中关于文件路径操作的API函数]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5291500</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5291500</guid><author>debehe</author><pubDate>Fri, 05 Feb 2010 14:58:00 +0800</pubDate><description><![CDATA[推荐的文章：Shell中关于文件路径操作的API函数http://www.cnblogs.com/fangkm/archive/2009/04/15/1436674.html 本来想自己整理下，但是按照现象的标题google了下就发现了上面的文章，我就不再重复劳动了。 把我常用的函数罗列如下，都是些实在的函数啊：PathRemoveFileSpecPathApp]]></description><category></category></item><item><title><![CDATA[std::map查询效率优化]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5284443</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5284443</guid><author>debehe</author><pubDate>Wed, 03 Feb 2010 11:58:00 +0800</pubDate><description><![CDATA[0.现状，数据是个xml文件，每个节点对应的结构体有10个成员变量，共有2000多条数据，用的std::map来保存，用map的find函数进行搜索时的效率极 其低下，循环搜索30条数据竟然要20s+，搓死。 1.为什么这么慢？最初怀疑是std::map的效率问题，正考虑是否使用std::hast_map来替换，于是了解下两者之间的差别：std::map是个自平衡的红黑]]></description><category></category></item><item><title><![CDATA[WM_EXITSIZEMOVE 保存窗口位置的合适时机]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5266078</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5266078</guid><author>debehe</author><pubDate>Thu, 28 Jan 2010 17:07:00 +0800</pubDate><description><![CDATA[保存窗口位置的合适时机The WM_EXITSIZEMOVE message is sent one time to a window, after it has exited the moving or sizing modal loop. The window enters the moving or sizing modal loop when the user clicks t]]></description><category></category></item><item><title><![CDATA[了解Hadoop]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5259602</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5259602</guid><author>debehe</author><pubDate>Tue, 26 Jan 2010 22:41:00 +0800</pubDate><description><![CDATA[主页http://hadoop.apache.org/Hadoop文档(看域名就知道这是官方版本:) )http://hadoop.apache.org/common/docs/r0.18.2/cn/index.html雅虎架构师谈MapReduce和Hadoop的未来作者 Scott Delap 译者 Terry 发布于 2008年3月18日 下午10时42分 http:]]></description><category></category></item><item><title><![CDATA[WTL CHyperLink在SetLinkFont后文字显示不全]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5207709</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5207709</guid><author>debehe</author><pubDate>Mon, 18 Jan 2010 15:42:00 +0800</pubDate><description><![CDATA[使用了CHyperLink，并用SetLinkFont设置了一个比较大的字体进去结果显示的文字只有左上角的一部分了。奇怪之余查看WTL源代码，发现有这么一个方法“CalcLabelRect”，在SetLable时会自动调用。而我们没有主动调用SetLable时会默认帮我们用Static的GetWindowText来设置一次，也就是在这个时候用Static的初始字体计算了一次显示区域。而我们在S]]></description><category></category></item><item><title><![CDATA[IE控件的XP风格化问题 || WebBrowser支持XP主题]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5182293</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5182293</guid><author>debehe</author><pubDate>Tue, 12 Jan 2010 17:20:00 +0800</pubDate><description><![CDATA[我搜索的关键字：WebBrowser支持XP主题 原文标题：IE控件的XP风格化问题地址：http://xushiwei.spaces.live.com/blog/cns!2EFE7C3ABC4FAD84!662.entry许老大06年的BLOG还在帮助着我 :) ]]></description><category></category></item><item><title><![CDATA[Nginx 常见应用技术指南[Nginx Tips] 第二版]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5181287</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5181287</guid><author>debehe</author><pubDate>Tue, 12 Jan 2010 14:01:00 +0800</pubDate><description><![CDATA[Nginx 常见应用技术指南[Nginx Tips] 第二版地址：http://16hot.blog.isyi.com/post/1/976 ]]></description><category></category></item><item><title><![CDATA[ubuntu下的vsftpd的配置手记]]></title><link>https://blog.youkuaiyun.com/debehe/article/details/5168394</link><guid>https://blog.youkuaiyun.com/debehe/article/details/5168394</guid><author>debehe</author><pubDate>Sun, 10 Jan 2010 10:15:00 +0800</pubDate><description><![CDATA[昨天晚上下载了Ubuntu9.10 desktop，安装很傻瓜化。今天又配置了下vsftpd，想不到又犯了低级错误。0.首先是安装vsftpd，太简单了：sudo apt-get install vsftpd 1.接着就是配置vsftpd我是参照wiki.ubuntu.org.cn上的文章来做的：http://wiki.ubuntu.org.cn/Vsftpd%E8%99%9A]]></description><category></category></item></channel></rss>