<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/lovemy" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/lovemy" type="application/rss+xml"></fs:self_link><lastBuildDate>Wed, 25 Jan 2006 14:57:00 GMT</lastBuildDate><title>2006..奋斗奋斗再奋斗..</title><description>努力学习VC/MFC中,为实现4个现代化而努力.......</description><link>http://blog.csdn.net/lovemy/</link><item><title>定制OpenBSD3.8的ISO</title><link>http://blog.csdn.net/lovemy/archive/2006/01/25/588268.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/588268.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/588268.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=588268</trackback:ping><description>由于OpenBSD官方未提供ISO，所以很多网友除了下载别人做的ISO外，只能自己定制。
虽然麻烦了点，但定制ISO可以让你真正领略到OpenBSD的“小即是美”的强大魅力，这点
上OpenBSD倒把我们兴趣给提起来了，害得我花了好久研究怎么彻底做个适合自己使用的
ISO，呵呵。
&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/588268.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Wed, 25 Jan 2006 22:57:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/25/588268.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/25/588268.aspx</guid><dc:creator>月风</dc:creator></item><item><title>Gtkmm在dev-cpp下的配置</title><link>http://blog.csdn.net/lovemy/archive/2006/01/25/587948.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/587948.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/587948.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=587948</trackback:ping><description>GTKMM&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/587948.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Wed, 25 Jan 2006 16:57:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/25/587948.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/25/587948.aspx</guid><dc:creator>月风</dc:creator></item><item><title>Solaris, Linux 和 FreeBSD 的内核比较</title><link>http://blog.csdn.net/lovemy/archive/2006/01/23/586849.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/586849.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/586849.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=586849</trackback:ping><description>Max Bruning 是一名教师/资讯专家，他的教授内容包括Solaris内部组织，设备驱动，内核和应用的crash分析及调试，网络组织和其他一些特定科目（他的blog在blogspot，不费点劲可能访问不了，所以也可以看看www.bruningsystems.com）。&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/586849.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 23 Jan 2006 22:10:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/23/586849.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/23/586849.aspx</guid><dc:creator>月风</dc:creator></item><item><title>MFC下常用宏说明</title><link>http://blog.csdn.net/lovemy/archive/2006/01/18/583176.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/583176.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/583176.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=583176</trackback:ping><description>MFC下常用宏说明&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/583176.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Thu, 19 Jan 2006 01:06:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/18/583176.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/18/583176.aspx</guid><dc:creator>月风</dc:creator></item><item><title>终于解决了这个怪问题</title><link>http://blog.csdn.net/lovemy/archive/2006/01/17/581572.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/581572.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/581572.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=581572</trackback:ping><description>重复启动关闭MDI程序的子窗口就会出现一个异常，然后就中断到：
inline _variant_t::_variant_t(IDispatch* pSrc, bool fAddRef) throw()
{
 V_VT(this) = VT_DISPATCH;
 V_DISPATCH(this) = pSrc;
 // Need the AddRef() as VariantClear() calls Release(), unless fAddRef
 // false indicates we're taking ownership
 //
 if (fAddRef) {
  V_DISPATCH(this)-&gt;AddRef();  《--------这一行。
}
}

并且fAddRef的value是1，开始还以为启动子FRMAE的时候哪地方没有释放或关闭，最后跟踪啊调试啊找问题啊，最后找到罪魁祸首的是我自己封装的数据库类，在构造函数中没有调用::CoInitialize(NULL);而在析构函数中却调用了::CoUninitialize() 难怪不得&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/581572.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 17 Jan 2006 18:02:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/17/581572.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/17/581572.aspx</guid><dc:creator>月风</dc:creator></item><item><title>MFC数据库操作笔记</title><link>http://blog.csdn.net/lovemy/archive/2006/01/15/580154.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/580154.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/580154.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=580154</trackback:ping><description>1.创建一个表的映射

    创建一个类,如CUserSet让它继承于CRecordset,创建完后VC让选择ODBC中的库,然后指定表我们选择user表，这样这个类基本上就和表user进行了映射.一定要在UserSet.h加入#include 不然会出一堆没定义的错误。

2.新增一条记录

CUserSet userset;//创建一个类的对象
userset.Open(CRecordset::snapshot,&quot;select * from user&quot;);
userset.AddNew();
userset.m_username = &quot;月风&quot;; //把你要新加的内容传给记录集类对应数据库的字段
userset.m_sex=&quot;男&quot;;
userset.Update();
userset.Close();

2.修改一条记录

CUserSet userset;//创建一个类的对象
CString strSql;
strSql.Format(&quot;select * from user where username='%s'&quot;,strUsername);/&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/580154.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 16 Jan 2006 04:55:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/15/580154.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/15/580154.aspx</guid><dc:creator>月风</dc:creator></item><item><title>操作数据库</title><link>http://blog.csdn.net/lovemy/archive/2006/01/15/579952.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/579952.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/579952.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=579952</trackback:ping><description>自己封装的类和方法&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/579952.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Sun, 15 Jan 2006 21:47:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/15/579952.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/15/579952.aspx</guid><dc:creator>月风</dc:creator></item><item><title>ListCtr的用法</title><link>http://blog.csdn.net/lovemy/archive/2006/01/09/574636.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/574636.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/574636.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=574636</trackback:ping><description>啊&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/574636.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Tue, 10 Jan 2006 03:32:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/09/574636.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/09/574636.aspx</guid><dc:creator>月风</dc:creator></item><item><title>今年首要目标...</title><link>http://blog.csdn.net/lovemy/archive/2006/01/09/574330.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/574330.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/574330.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=574330</trackback:ping><description>晕&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/574330.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 09 Jan 2006 21:23:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/09/574330.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/09/574330.aspx</guid><dc:creator>月风</dc:creator></item><item><title>获得OnOK退出控制</title><link>http://blog.csdn.net/lovemy/archive/2006/01/08/573841.aspx</link><wfw:comment>http://blog.csdn.net/lovemy/comments/573841.aspx</wfw:comment><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/lovemy/comments/commentRss/573841.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=573841</trackback:ping><description>CDialog的OnOK虚函数控制了OK按钮，它负责触发数据交换以及从对话框中退出，然而，Enter键碰巧也具有同样的效果。也许这是我们所需要的，也可能我们不需要这一功能，就是说不希望用户在编辑框中按Enter键后出现关闭程序的情况。怎么解决这一问题？

    一、原因

    当用户按下Enter键时，Windows就会自动去找输入焦点落在了哪一个按钮上，当获得焦点的按钮的四周将被点线矩形包围。如果所有按钮都没有获得输入焦点，Windows就会自动去寻找程序或资源所指定的默认按钮(默认按钮边框较粗)。如果对话框没有默认按钮，那么即使对话框中没有OK按钮，OnOK函数也会自动被调用。

    二、解决办法
    首先建立一个基于对话框的程序。

    1.直接把要接受默认OnOK的按钮设置成Default。。这样按回车的时候将自动触发这按钮事件。

    2.添加虚函数OnOK(),然后在里面进行自己的处理或调用验证函数等。&lt;img src =&quot;http://blog.csdn.net/lovemy/aggbug/573841.aspx&quot; width = &quot;1&quot; height = &quot;1&quot; /&gt;</description><pubDate>Mon, 09 Jan 2006 05:09:00 +0800</pubDate><author>月风</author><comments>http://blog.csdn.net/lovemy/archive/2006/01/08/573841.aspx#Feedback</comments><guid isPermaLink="false">http://blog.csdn.net/lovemy/archive/2006/01/08/573841.aspx</guid><dc:creator>月风</dc:creator></item></channel></rss>