﻿<?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>博客园-hoodlum1980 ( 發發 ) 的技术博客</title><link>http://www.cnblogs.com/hoodlum1980/</link><description>——ZJU: 百十载，求是魂，求是创新（领域：c/c++, c#, .NET, Compact Framework, WinCE，Matlab，PhotoShop，数字图像处理，电力系统自动化，继电保护）</description><language>zh-cn</language><lastBuildDate>Thu, 21 Aug 2008 13:30:11 GMT</lastBuildDate><pubDate>Thu, 21 Aug 2008 13:30:11 GMT</pubDate><ttl>60</ttl><item><title>我的C语言合集</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/08/19/1271678.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Tue, 19 Aug 2008 12:43:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/08/19/1271678.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1271678.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/08/19/1271678.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1271678.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1271678.html</trackback:ping><description><![CDATA[摘要: <img src="http://www.cnblogs.com/images/cnblogs_com/hoodlum1980/chessboard.jpg" class="desc_img"/>这里主要是我最近一段时间在中国编程论坛中发表的C语言板块的帖子和回帖等，主要选取了我个人发表的一些原创C语言代码（全部采用TC2.0进行编译），有少量属于我的一部分研究和学习过程中写的非原创性代码在说明文件中有注明，还有很多比较优秀的我收集的代码，因为并非我的原创而不位于该压缩包内。OUTPUT文件夹中有一部分代码的编译结果，对代码这里就不再一一讲解了。&nbsp;&nbsp;<a href='http://www.cnblogs.com/hoodlum1980/archive/2008/08/19/1271678.html'>阅读全文</a><img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1271678.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41822/" target="_blank">[新闻]第一财经周刊:当前互联网世界正处无秩序时代</a>]]></description></item><item><title>windows程序开发中c++和c#的对照(2)</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/08/14/1268229.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Thu, 14 Aug 2008 14:41:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/08/14/1268229.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1268229.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/08/14/1268229.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1268229.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1268229.html</trackback:ping><description><![CDATA[<p><strong>（1）已知一个位图句柄（HBITMAP），如何获取位图的宽度和高度？</strong></p>
<p>在C#中非常简单，只需要直接访问bitmap.Width和Height属性即可。</p>
<p>在Platform SDK中，<font face="Verdana">GetBitmapDimensionEx是不能完成这个功能的（它需要事先调用SetBitmapDimensionEx），</font></p>
<p>而使用GetObject函数来获取GDIOBJECT的信息，如下代码：</p>
<p>&nbsp;</p>
<p>&nbsp;HBITMAP hBitmap;</p>
<p>&nbsp;BITMAP bminfo;</p>
<p><font face="Verdana">&nbsp;GetObject(hBitmap, sizeof(BITMAP), &amp;bminfo);</font></p>
<p>&nbsp;</p>
<p>&nbsp;从 bminfo.<font face="Verdana">bmWidth 以及 bmHeight属性可以得到。</font></p>
<p>&nbsp;</p>
<p><strong>（2）如何从一个本地文件路径加载一个HBITMAP？</strong></p>
<p>&nbsp;</p>
<p>LoadBitmap可以从HINSTANCE中加载位图资源，但是无法从文件名中加载。要完成这个任务，需要使用LoadImage。</p>
<p>例如：</p>
<p>char* strFileName="c:\\a.bmp";</p>
<p>HBITMAP <font face="Verdana">hBitmap= (HBITMAP)LoadImage(NULL, strFileName, IMAGE_BITMAP,0,0,LR_LOADFROMFILE);</font></p>
<p>&nbsp;</p>
<p>但LoadImage函数只能加载BMP文件，无法成功加载JPG格式。如果要加载JPG格式，应使用OleLoadPicturePath获取一个IPicture接口对象，调用其Render函数在指定的DC进行绘制。</p>
<p>&nbsp;</p>
<p><strong>（3）如何使ActiveX控件重绘？</strong></p>
<p>要使在IE中的ActiveX控件，可以调用this-&gt;<font face="Verdana">FireViewChange();</font></p>
<p>&nbsp;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (to be continued...)</p>
<p>&nbsp;</p>
<img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1268229.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41820/" target="_blank">[新闻]Visual Studio 2008 SDK 1.1 发布</a>]]></description></item><item><title>[非原创]树和图的遍历</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/08/10/1264642.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Sun, 10 Aug 2008 05:57:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/08/10/1264642.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1264642.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/08/10/1264642.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1264642.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1264642.html</trackback:ping><description><![CDATA[摘要:       本文分析了系统设计师教程中的数据结构章节的部分代码，并分析和图解了对树和图两种基本数据结构的遍历。&nbsp;&nbsp;<a href='http://www.cnblogs.com/hoodlum1980/archive/2008/08/10/1264642.html'>阅读全文</a><img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1264642.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41821/" target="_blank">[新闻]死敌VMware变身微软认证计划新成员</a>]]></description></item><item><title>发布一个用于WinCE的矢量图控件</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/08/07/1262524.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Wed, 06 Aug 2008 20:18:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/08/07/1262524.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1262524.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/08/07/1262524.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1262524.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1262524.html</trackback:ping><description><![CDATA[<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 发布一个在wince操作系统下，采用.net compact framework 1.0 ( c#)开发的矢量图控件，我于2007年3月份集中一个月的经历完成了它。当然，它的前身是2005年12月我写的第一个矢量图控件，在后来我在此基础上改进了很多地方，针对具体应用做了重新设计并集中精力把它完成，由于属于再次设计，因此它的架构设计和编码中凝聚了我此前开发中的经验和积累，它是我当时最满意的一个模块，对它的架构和可维护性以及运行性能都感到令我感到非常满意，可以说代表了我当时的最高水平。当然从今天来看里面还有一些缺点和经验不足之处。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 例子代码我命名为GisCtl，是因为它原本是希望完成GIS的功能，但是实际上距离GIS还有一定的距离和偏差。该模块的底层算法和全部编码全部是我独自设计，这其中涉及了一系列图形捕捉算法，图元几何变换和逆变换，图层管理，缩略图，视图参数缓存环形队列，文件格式定义和IO等等。在编写该模块中的一些算法时我积累了很厚的演算草稿纸，用到了很多数学和几何知识，当然也感谢飘渺水云间BBS上ZOL版一些热心网友的支持和对我的解答。在编写这个模块时，涉及到一些设计模式，数据结构，算法的应用，比如鼠标在图上点击选择对象时，有一系列判别算法。比如图元和链接对象采用了是类似flyweight模式以节省内存（在我的另一篇随笔《图元几何变换与flyweight模式》中有讲解），比如视图缓存采用了环形的数据结构（在《环形视图堆栈》中有讲述），比如导航图采用了观察者（订阅）模式。该模块的使用方法集中在例子里，这里就不再叙述了。文档说明还暂时不能提供。目前该模块能读写我的自定义格式图形文件，以及mif格式文件。由于需求，该控件没有包装例如用鼠标创建，拖曳，变换对象的操作，但可以用代码来实现这些功能。&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这个模块属于我实际工作的项目的一部分。我希望它能发挥更大的价值，而不仅仅是沉寂。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 该模块文件名是LineViewCtl.dll, 命名控件是LineViewLib;该dll位于压缩包内，项目中也附带了两个从实际系统中导出的图形文件。</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在模拟器中运行的效果图：（由于模拟器不支持中文，所以中文没能正确显示）</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img height="534" alt="" src="http://www.cnblogs.com/images/cnblogs_com/hoodlum1980/LineViewCtl_01.jpg" width="340" border="0" /></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 范例代码：</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a title="http://www.cnblogs.com/Files/hoodlum1980/JRL_GisCtlDemo.rar" href="http://www.cnblogs.com/Files/hoodlum1980/JRL_GisCtlDemo.rar">http://www.cnblogs.com/Files/hoodlum1980/JRL_GisCtlDemo.rar</a></p>
<p>&nbsp;</p>
<img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1262524.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41819/" target="_blank">[新闻]英特尔雅虎开发网络计算机频道</a>]]></description></item><item><title>显示SendMessage和PostMessage的区别</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/07/15/1243715.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Tue, 15 Jul 2008 15:16:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/07/15/1243715.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1243715.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/07/15/1243715.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1243715.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1243715.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这是一个小的例子在于演示SendMessage和PostMessage的区别，其区别简单来说，就是前者会等待对方的窗口过程返回，后者则仅仅给对方的消息队列中投放一个消息立即返回，不会阻塞。因此两个函数的返回值不同，前者为窗口过程的返回值（LRESULT），后者仅投递消息，因此仅返回BOOL表示是否投递成功。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img height="121" alt="" src="http://www.cnblogs.com/images/cnblogs_com/hoodlum1980/TestSendMessage.jpg" width="548" border="0" /><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 源代码下载链接（VC6）：<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a title="http://www.cnblogs.com/Files/hoodlum1980/SendMsgTest.rar" href="http://www.cnblogs.com/Files/hoodlum1980/SendMsgTest.rar">http://www.cnblogs.com/Files/hoodlum1980/SendMsgTest.rar</a><br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1243715.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41818/" target="_blank">[新闻]Windows Live视频邮件9月9日开始测试</a>]]></description></item><item><title>[c++]访MSN浮出窗口的示例</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/07/12/1241260.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Fri, 11 Jul 2008 23:01:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/07/12/1241260.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1241260.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/07/12/1241260.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1241260.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1241260.html</trackback:ping><description><![CDATA[【声明】严格来讲，这篇文章不属于我的原创。我在这里参考了codeproject上的国外作者的模仿MSN浮出窗口的C#代码。换句话说，可以认为我把C#代码翻译成了C++代码。另外，为了简化代码，CloseButton我没有采用自己绘制，而是用一个ImageButton来代替。<br />
<br />
效果如图所示：<br />
<img height="173" alt="" src="http://www.cnblogs.com/images/cnblogs_com/hoodlum1980/notifywnd02.jpg" width="324" border="0" /><br />
<br />
<br />
窗口浮出时，停靠于屏幕右下角的位置，这里我借用了博客园的图标（仅用作范例），该窗口主要由用户自定义绘制完成。同时，为了防止浮出窗口夺取焦点，<span class="clsLiteral">SWP_NOACTIVATE</span>标识似乎有时候并没有很好的符合预期，因此我在重设窗口位置的前后强行设置了前台窗口。<br />
<br />
<img height="161" alt="" src="http://www.cnblogs.com/images/cnblogs_com/hoodlum1980/notifywnd01.jpg" width="232" border="0" /><br />
<br />
该示例的源代码（VC6.0 + Windows Platform SDK)下载：<br />
<a href="http://www.cnblogs.com/Files/hoodlum1980/JRL.NotifyWndDemo.rar">http://www.cnblogs.com/Files/hoodlum1980/JRL.NotifyWndDemo.rar</a> 
<img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1241260.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41817/" target="_blank">[新闻]Intel首次公开展示Nehalem架构迅驰3平台</a>]]></description></item><item><title>windows程序开发中c++和c#的对照</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/07/04/1235669.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Fri, 04 Jul 2008 06:54:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/07/04/1235669.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1235669.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/07/04/1235669.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1235669.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1235669.html</trackback:ping><description><![CDATA[摘要: 有的选项可能仅提供C++和Windows Platform SDK中的方法（API）：（1）将窗口设为顶层窗口： c++： //[注意]：BringWindowToTop( hwnd )不会使窗口成为TopMost窗口！ SetWindowPos(hDlg,HWND_TOPMOST,0,0,0,0,SWP_NOSIZE|SWP_NOMOVE); //忽略x，y，cx，cy参数 c#： form1.&nbsp;&nbsp;<a href='http://www.cnblogs.com/hoodlum1980/archive/2008/07/04/1235669.html'>阅读全文</a><img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1235669.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41816/" target="_blank">[新闻]Pogo浏览器</a>]]></description></item><item><title>[c#]可在任意位置弹出的BalloonTip</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/05/10/1191515.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Sat, 10 May 2008 11:46:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/05/10/1191515.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1191515.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/05/10/1191515.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1191515.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1191515.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BalloonTip通常出现在位于屏幕右下角的Tray（成为通知栏，或系统托盘）的Icon上，比如用户插拔USB设备时的气泡提示。该函数位于Shell32中，是通过调用下面这个API函数实现的， BOOL Shell_NotifyIcon( DWORD dwMessage, PNOTIFYICONDATA lpdata ); 该函数用于控制对TrayIcon进行控制，可以弹出BalloonTip。然后却只能局限于Tray位置。而在QQ的聊天对话框中，我们发现如果不输入内容而试图发送消息时，就会在按钮上弹出这样的Tip。为此，我在C#中写了一个类似的窗口，可以在任意位置浮出，效果如下：<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <img style="font-family: " height="368" alt="" src="http://www.cnblogs.com/images/cnblogs_com/hoodlum1980/BalloonTipDemo.jpg" width="416" border="0" />
<pre></pre>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这是测试程序的截图。在实现时，略微参考了codeproject上的仿MSN浮出窗口的代码。其涉及的主要麻烦是，为了提供足够灵活的接口，应该如何处理窗口上各个元素布局。为了简单期间，这里仅仅提供了&#8220;箭头&#8221;位于右下角的布局方式。（很显然该箭头一共可以有8个停靠位置）。<br />
&nbsp;&nbsp;&nbsp;&nbsp; （1）在弹出时，不夺走其他窗口焦点。为此使用了API的ShowWindow函数： ShowWindow(this.Handle, SW_SHOWNOACTIVATE); <br />
&nbsp;&nbsp;&nbsp;&nbsp; （2）窗体上一共包含4项主要内容：图标，标题，内容文本，关闭按钮。用户可以配置他们，例如选择图标（可以由外部设置或者使用内置图标），是否显示关闭按钮，是否自动关闭（如果把TimeoutMilliSeconds属性设为负数则不会自动关闭，只能通过CloseButton关闭），各种颜色，字体等。另提供一个BalloonClick事件，通知外部用户点击事件。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;（3）绘制CloseButton的位图时，由于图中具有透明色，因此需要在绘制时指定透明色，相当于蒙版的作用。否则透明色会被绘制到窗体上导致窗体透明那个。<br />
&nbsp;&nbsp;&nbsp;&nbsp; （4）弹出该窗口，主要使用ShowAt（）函数。里面需要一些参数。如果需要进一步设置其他属性，可以单独进行设置。<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 源代码的下载链接：&nbsp;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.cnblogs.com/Files/hoodlum1980/JDL.UILib_BalloonTip_VS7.rar">http://www.cnblogs.com/Files/hoodlum1980/JDL.UILib_BalloonTip_VS7.rar</a> 
 <img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1191515.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41807/" target="_blank">[新闻]洪磊口述:番茄花园如何捆绑流氓软件月入十万</a>]]></description></item><item><title>关于编译时的warning treated as error</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/03/04/1090634.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Tue, 04 Mar 2008 12:08:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/03/04/1090634.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1090634.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/03/04/1090634.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1090634.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1090634.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;编译器提示：warning treated as error，然后某个文件未生成，build中断。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;这是因为项目选项中把warning级别设置为了较高的级别导致的，某些warning被当作error，从而不能生成。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;解决方法是在解决方案窗口中选中项目，右键点击project，选择&#8220;属性&#8221;，在弹出的对话框中，选择左侧TreeView中的&#8220;Configuration Properties&#8221;-&gt;&#8220;C/C++l&#8221;-&gt;&#8220;General&#8221;节点，在右侧有&#8220;Treat Warnings As Errors&#8221;（将警告当作错误对待）选项。我们把该项该为NO即可。即把相应命令行的"/WX"改为"/W"。<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 相应的编译选项如下：（参考MSDN）<br />
<div class="tableSection"><font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong>/w</strong>&nbsp;&nbsp;&nbsp; 禁止所有警告&nbsp;<br />
<font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><strong>/W</strong>n&nbsp;&nbsp; 指定显示的最高等级警告。有效等级是0~4。0级禁止所有警告。4级显示所有警告。<br />
<font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><strong>/Wall</strong> 使能所有警告。<br />
<font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><strong>/WX</strong>&nbsp;&nbsp; 视所有警告为错误。<br />
<font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><strong>/w</strong>ln&nbsp; 将某个指定警告视为某个级别。第一个参数是新的级别，第二个参数是警告号码。例如/w14326 使 C4326成为1级警告。<br />
<font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><strong>/wd</strong>n&nbsp; 禁止某特定警告。n是警告号。例如, /wd4326 禁止C4326警告。<br />
<font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><strong>/we</strong>n&nbsp; 将某个指定警告视为错误。n是警告号。例如, /we4326 把 C4326 视为错误。<br />
<font face="Verdana">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><strong>/wo</strong>n&nbsp; 某警告仅仅报告一次。例如：wo4326使C4326仅仅报告一次。</font></div>
<img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1090634.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41813/" target="_blank">[新闻]2008年8月21日IT博客精选：盖茨复出？</a>]]></description></item><item><title>对Photoshop高斯模糊滤镜的算法总结</title><link>http://www.cnblogs.com/hoodlum1980/archive/2008/03/03/1088567.html</link><dc:creator>hoodlum1980</dc:creator><author>hoodlum1980</author><pubDate>Mon, 03 Mar 2008 03:44:00 GMT</pubDate><guid>http://www.cnblogs.com/hoodlum1980/archive/2008/03/03/1088567.html</guid><wfw:comment>http://www.cnblogs.com/hoodlum1980/comments/1088567.html</wfw:comment><comments>http://www.cnblogs.com/hoodlum1980/archive/2008/03/03/1088567.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnblogs.com/hoodlum1980/comments/commentRss/1088567.html</wfw:commentRss><trackback:ping>http://www.cnblogs.com/hoodlum1980/services/trackbacks/1088567.html</trackback:ping><description><![CDATA[摘要: <img src="http://images.cnblogs.com/cnblogs_com/hoodlum1980/guasswin004.jpg" class="desc_img"/>摘要： 最近有感于部分网友对高斯模糊滤镜的研究，本文将对高斯模糊中半径值的含义以及高斯模糊模板尺寸的疑惑做出总结和解答。&nbsp;&nbsp;<a href='http://www.cnblogs.com/hoodlum1980/archive/2008/03/03/1088567.html'>阅读全文</a><img src ="http://www.cnblogs.com/hoodlum1980/aggbug/1088567.html?type=1" width = "1" height = "1" /><br><br><a href="http://news.cnblogs.com/n/41812/" target="_blank">[新闻]微软宣布将斥资1亿美元购买Novell证书</a>]]></description></item></channel></rss>