﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-fivethree</title><link>http://www.cppblog.com/fivethree/</link><description /><language>zh-cn</language><lastBuildDate>Tue, 14 Apr 2026 23:06:11 GMT</lastBuildDate><pubDate>Tue, 14 Apr 2026 23:06:11 GMT</pubDate><ttl>60</ttl><item><title>C# 里面的 #region </title><link>http://www.cppblog.com/fivethree/archive/2010/03/09/109299.html</link><dc:creator>苹果橙子乖乖</dc:creator><author>苹果橙子乖乖</author><pubDate>Tue, 09 Mar 2010 09:18:00 GMT</pubDate><guid>http://www.cppblog.com/fivethree/archive/2010/03/09/109299.html</guid><wfw:comment>http://www.cppblog.com/fivethree/comments/109299.html</wfw:comment><comments>http://www.cppblog.com/fivethree/archive/2010/03/09/109299.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/fivethree/comments/commentRss/109299.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fivethree/services/trackbacks/109299.html</trackback:ping><description><![CDATA[#region 是 C#&nbsp;预处理器指令。<br>#region 是一个分块预处理命令，它主要是用于编辑器代码的分块，在编译时会被自动删除。<br>#region 使您可以在使用&nbsp;Visual&nbsp;Studio&nbsp;代码编辑器的大纲显示功能时指定可展开或折叠的代码块。例如：<br><br>#region&nbsp;MyClass&nbsp;definition<br>public&nbsp;class&nbsp;MyClass&nbsp;<br>{<br>&nbsp;&nbsp;&nbsp;&nbsp;static&nbsp;void&nbsp;Main()&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;{<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>}<br>#endregion<br>&nbsp;<br>备注：#region&nbsp;块必须以&nbsp;#endregion&nbsp;指令终止。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#region&nbsp;块不能与&nbsp;#if&nbsp;块重叠。但是，可以将&nbsp;#region&nbsp;块嵌套在&nbsp;#if&nbsp;块内，或将&nbsp;#if&nbsp;块嵌套在&nbsp;#region&nbsp;块内。
<img src ="http://www.cppblog.com/fivethree/aggbug/109299.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fivethree/" target="_blank">苹果橙子乖乖</a> 2010-03-09 17:18 <a href="http://www.cppblog.com/fivethree/archive/2010/03/09/109299.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VC++6.0中ClassView中类消失 解决方案</title><link>http://www.cppblog.com/fivethree/archive/2010/03/04/108885.html</link><dc:creator>苹果橙子乖乖</dc:creator><author>苹果橙子乖乖</author><pubDate>Thu, 04 Mar 2010 06:20:00 GMT</pubDate><guid>http://www.cppblog.com/fivethree/archive/2010/03/04/108885.html</guid><wfw:comment>http://www.cppblog.com/fivethree/comments/108885.html</wfw:comment><comments>http://www.cppblog.com/fivethree/archive/2010/03/04/108885.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/fivethree/comments/commentRss/108885.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fivethree/services/trackbacks/108885.html</trackback:ping><description><![CDATA[<div class=tit>VC++6.0中ClassView中类消失 解决方案</div>
<div class=date>2009-06-30 10:21</div>
<table style="TABLE-LAYOUT: fixed; WIDTH: 100%">
    <tbody>
        <tr>
            <td>
            <div class=cnt id=blog_text>
            <p>有时候在VC++6.0中编程会出现这样一个问题，由于对C...View类的操作后，在窗口左边ClassView框中的C...View类会消失，这种操作通常是在C...View类中右击点&#8220;Add Windows Message Handler...&#8221;增加消息响应，然后至使消失的，当然也可能有其他操作消失，对此问题的我只见过由前一种原因产生的情况，我的解决办法是撤消前一步对C...View类的操作，比如前一步由于增加了OnSize()操作而使得此类消失，则在ClassWizard中删除WM-Size的消息响应后C...View类就会出现，：</p>
            <p style="TEXT-INDENT: 2em">（1）产生这样的原因比较多</p>
            <p style="TEXT-INDENT: 2em">一、如果是因为同时用两个VC并且都用VC去打开同一个工程，会有这种情况。这时候只要都关掉重新打开就行了。</p>
            <p style="TEXT-INDENT: 2em">二、临时文件产生错乱。</p>
            <p style="TEXT-INDENT: 2em">下面的网民对此问题的解决方案</p>
            <p style="TEXT-INDENT: 2em">（1）先把工程关了，再把.ncb 或者 .clw文件删了，在把工程打开就有了</p>
            <p style="TEXT-INDENT: 2em">(2)&nbsp;&nbsp; 在菜单栏点open，然后找到刚才消失的那个类的头文件，然后再头文件里随便打点东</p>
            <p style="TEXT-INDENT: 2em">西，关闭头文件之后提示是否保存——点否，然后那个消失的类就出来</p>
            </div>
            </td>
        </tr>
    </tbody>
</table>
<img src ="http://www.cppblog.com/fivethree/aggbug/108885.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fivethree/" target="_blank">苹果橙子乖乖</a> 2010-03-04 14:20 <a href="http://www.cppblog.com/fivethree/archive/2010/03/04/108885.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>使用SqlConfigDataSource实现ODBC数据源配置（转）</title><link>http://www.cppblog.com/fivethree/archive/2010/03/03/108757.html</link><dc:creator>苹果橙子乖乖</dc:creator><author>苹果橙子乖乖</author><pubDate>Wed, 03 Mar 2010 01:48:00 GMT</pubDate><guid>http://www.cppblog.com/fivethree/archive/2010/03/03/108757.html</guid><wfw:comment>http://www.cppblog.com/fivethree/comments/108757.html</wfw:comment><comments>http://www.cppblog.com/fivethree/archive/2010/03/03/108757.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/fivethree/comments/commentRss/108757.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fivethree/services/trackbacks/108757.html</trackback:ping><description><![CDATA[<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><span lang=EN-US style="FONT-FAMILY: Verdana">SQLConfigDataSource()</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">的原型如下</span><span lang=EN-US style="FONT-FAMILY: Verdana">:<br><br><span style="COLOR: red">BOOL SQLConfigDataSource(HWND hwndParent, UINT fRequest, LPCSTR IpszDriver, LPCSTR IpszAttributes);<br></span></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">其中四个参数的用法如下</span><span lang=EN-US style="FONT-FAMILY: Verdana">:<br>●</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">参数</span><span lang=EN-US style="FONT-FAMILY: Verdana">hwndPwent</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">是父级窗口句柄。如果句柄为</span><span lang=EN-US style="FONT-FAMILY: Verdana">NULL</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">，将不会显示一些有关的对话框。如果参数</span><span lang=EN-US style="FONT-FAMILY: Verdana"> IpszAttributes</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">提供的信息不够完善，在创建过程中就会出现对话框要求用户提供相应信息。</span><span lang=EN-US style="FONT-FAMILY: Verdana"><br>●</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">参数</span><span lang=EN-US style="FONT-FAMILY: Verdana">fRequest</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">可以设置为下面的数值之一</span><span lang=EN-US style="FONT-FAMILY: Verdana">:<br>ODBC_ADD_DSN: </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">增加＿个新数据源</span><span lang=EN-US style="FONT-FAMILY: Verdana"><br>ODBC_CONHG_DSN: </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">配置（修改</span><span lang=EN-US style="FONT-FAMILY: Verdana">)</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">一个已经存在的数据源</span><span lang=EN-US style="FONT-FAMILY: Verdana"><br>ODBC_REMOVE_DSN: </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">删除一个已经存在的数据源</span><span lang=EN-US style="FONT-FAMILY: Verdana"><br>ODBC_ADD_SYS_DSN: </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">增加一个新的系统数据源</span><span lang=EN-US style="FONT-FAMILY: Verdana"><br>ODBC_CONFIG_SYS_DSN: </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">更改一个已经存在的系统数据源</span><span lang=EN-US style="FONT-FAMILY: Verdana"><br>ODBC_REMOVE_SYS_DSN: </span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">删除一个已经存在的系统数据源</span><span lang=EN-US style="FONT-FAMILY: Verdana"><br>●</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">参数</span><span lang=EN-US style="FONT-FAMILY: Verdana">lpszDriver</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">是数据库引擎名称，可以参见</span><span lang=EN-US style="FONT-FAMILY: Verdana">ODBC</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">管理器中对</span><span lang=EN-US style="FONT-FAMILY: Verdana">ODBC</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">驱动程序的描述。比如要加载的是</span><span lang=EN-US style="FONT-FAMILY: Verdana">Excel</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">数据库，那么数据库引擎名称就为</span><span lang=EN-US style="FONT-FAMILY: Verdana">Microsoft Excel Driver(*.xls)<br>●</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">参数</span><span lang=EN-US style="FONT-FAMILY: Verdana">lpszAttributes</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">为一连串的</span><span lang=EN-US style="FONT-FAMILY: Verdana">"KeyName=value"</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">字符串，每两个</span><span lang=EN-US style="FONT-FAMILY: Verdana">KeyName</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">值之间用</span><span lang=EN-US style="FONT-FAMILY: Verdana">\0""</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">字符隔开</span><span lang=EN-US style="FONT-FAMILY: Verdana">(</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">或者</span><span lang=EN-US style="FONT-FAMILY: Verdana">\0</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">隔开即可</span><span lang=EN-US style="FONT-FAMILY: Verdana">)</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">。</span><span lang=EN-US style="FONT-FAMILY: Verdana">KeyName</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">主要是新数据源缺省的驱动程序注册说明，其中最主要的关键字是</span><span lang=EN-US style="FONT-FAMILY: Verdana">"DSN"(</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">新数据源的名称</span><span lang=EN-US style="FONT-FAMILY: Verdana">)</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">和</span><span lang=EN-US style="FONT-FAMILY: Verdana">"DBQ"(</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">数据源的地址</span><span lang=EN-US style="FONT-FAMILY: Verdana">)</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">，其余关键字则根据不同的数据源有不同要求。关于</span><span lang=EN-US style="FONT-FAMILY: Verdana">lpszAttributes</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">参数的具体设置，详细可以参考</span><span lang=EN-US style="FONT-FAMILY: Verdana">Windows</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">系统目录下帮助文件</span><span lang=EN-US style="FONT-FAMILY: Verdana">Odbcjtn.hlp</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">主题目录标签中的</span><span lang=EN-US style="FONT-FAMILY: Verdana">"ODBC API</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">函数改变</span><span lang=EN-US style="FONT-FAMILY: Verdana">|SQLConfigDatasource"</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">条目。</span><span lang=EN-US style="FONT-FAMILY: Verdana"><br><br>SqlConfigDataSource</span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">的应用条件：</span><span lang=EN-US style="FONT-FAMILY: Verdana"><br><br></span><span style="COLOR: red; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">使用</span><span lang=EN-US style="COLOR: red; FONT-FAMILY: Verdana">SqlConfigDataSource</span><span style="COLOR: red; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">函数之前，必须把</span><span lang=EN-US style="COLOR: red; FONT-FAMILY: Verdana">ODBCINST.H</span><span style="COLOR: red; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">文件包含在工程头文件中，将</span><span lang=EN-US style="COLOR: red; FONT-FAMILY: Verdana">ODBCCP32.LIB</span><span style="COLOR: red; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">加入工程，同时保证</span><span lang=EN-US style="COLOR: red; FONT-FAMILY: Verdana">ODBCCP32.DLL</span><span style="COLOR: red; FONT-FAMILY: 宋体; mso-ascii-font-family: Verdana; mso-hansi-font-family: Verdana">运行时处于系统子目录下。</span><span lang=EN-US style="COLOR: red; FONT-FAMILY: Verdana"><o:p></o:p></span></p>
<p class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><span lang=EN-US style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana">SQLConfigDataSource(<br><v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><v:shape id=_x0000_i1025 style="WIDTH: 8.25pt; HEIGHT: 12pt" alt="" type="#_x0000_t75"><v:imagedata o:href="http://www.cppblog.com/Images/OutliningIndicators/None.gif" src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"></v:imagedata></v:shape>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;NULL,<br><v:shape id=_x0000_i1026 style="WIDTH: 8.25pt; HEIGHT: 12pt" alt="" type="#_x0000_t75"><v:imagedata o:href="http://www.cppblog.com/Images/OutliningIndicators/None.gif" src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"></v:imagedata></v:shape>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ODBC_ADD_SYS_DSN,<br><v:shape id=_x0000_i1027 style="WIDTH: 8.25pt; HEIGHT: 12pt" alt="" type="#_x0000_t75"><v:imagedata o:href="http://www.cppblog.com/Images/OutliningIndicators/None.gif" src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"></v:imagedata></v:shape>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Microsoft&nbsp;Access&nbsp;Driver&nbsp;(*.mdb)",<br><v:shape id=_x0000_i1028 style="WIDTH: 8.25pt; HEIGHT: 12pt" alt="" type="#_x0000_t75"><v:imagedata o:href="http://www.cppblog.com/Images/OutliningIndicators/None.gif" src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"></v:imagedata></v:shape>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"DSN=TryDB\0"<br><v:shape id=_x0000_i1029 style="WIDTH: 8.25pt; HEIGHT: 12pt" alt="" type="#_x0000_t75"><v:imagedata o:href="http://www.cppblog.com/Images/OutliningIndicators/None.gif" src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"></v:imagedata></v:shape>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"DBQ=D:\\TryDB.mdb\0"<br><v:shape id=_x0000_i1030 style="WIDTH: 8.25pt; HEIGHT: 12pt" alt="" type="#_x0000_t75"><v:imagedata o:href="http://www.cppblog.com/Images/OutliningIndicators/None.gif" src="file:///C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\msohtml1\01\clip_image001.gif"></v:imagedata></v:shape>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;);</span></p>
<img src ="http://www.cppblog.com/fivethree/aggbug/108757.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fivethree/" target="_blank">苹果橙子乖乖</a> 2010-03-03 09:48 <a href="http://www.cppblog.com/fivethree/archive/2010/03/03/108757.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Skin++</title><link>http://www.cppblog.com/fivethree/archive/2010/03/03/108756.html</link><dc:creator>苹果橙子乖乖</dc:creator><author>苹果橙子乖乖</author><pubDate>Wed, 03 Mar 2010 01:47:00 GMT</pubDate><guid>http://www.cppblog.com/fivethree/archive/2010/03/03/108756.html</guid><wfw:comment>http://www.cppblog.com/fivethree/comments/108756.html</wfw:comment><comments>http://www.cppblog.com/fivethree/archive/2010/03/03/108756.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/fivethree/comments/commentRss/108756.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/fivethree/services/trackbacks/108756.html</trackback:ping><description><![CDATA[<pre style="BACKGROUND: white"><font size=2><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">用</span><span lang=EN-US><font face=Arial>skin++</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">给</span><span lang=EN-US><font face=Arial>VC</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">换皮肤</span></font></pre>
<pre style="BACKGROUND: white"><font size=2><span lang=EN-US><font face=Arial>1.</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">将</span><span lang=EN-US><font face=Arial>SkinPlusPlusDLL.lib,SkinPlusPlus.h,XPCorona.ssk,SkinPlusPlusDLL.dll</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">都复制到当前目录</span></font></pre>
<pre style="BACKGROUND: white"><font size=2><span lang=EN-US><font face=Arial>2.</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">在工程中加入</span><span lang=EN-US><font face=Arial>SkinPlusPlus.h</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">文件。</span></font></pre>
<pre style="BACKGROUND: white"><font size=2><span lang=EN-US><font face=Arial>3.</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">添加对库文件的引用，</span></font><font size=2><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">打开工程</span><span lang=EN-US><font face=Arial>-&gt;</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">设置</span><span lang=EN-US><font face=Arial>-&gt;</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">连接</span><span lang=EN-US><font face=Arial>-&gt;</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">对象</span><span lang=EN-US><font face=Arial>/</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">库模块</span><font face=Arial> </font><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">添加</span><span lang=EN-US><font face=Arial>SkinPlusPlusDLL.lib </font></span></font></pre>
<pre style="BACKGROUND: white"><font size=2><span lang=EN-US><font face=Arial>4.</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">应用程序类的源文件中包含头文件：</span></font><span lang=EN-US><font face=Arial size=2>#include "SkinPlusPlus.h"</font></span></pre>
<pre style="BACKGROUND: white"><font size=2><span lang=EN-US><font face=Arial>5.</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">在</span><span lang=EN-US><font face=Arial>InitInstance()</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial">函数中加入：</span></font><span lang=EN-US><font face=Arial size=2>InitializeSkin(_T("XPCorona.ssk"));<a href="http://www.cppblog.com/Files/fivethree/Skins.rar">/Files/fivethree/Skins.rar</a><br></font></span></pre>
<img src ="http://www.cppblog.com/fivethree/aggbug/108756.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/fivethree/" target="_blank">苹果橙子乖乖</a> 2010-03-03 09:47 <a href="http://www.cppblog.com/fivethree/archive/2010/03/03/108756.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>