﻿<?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>博客园-Wu.Country@侠缘-最新评论</title><link>http://www.cnblogs.com/WuCountry/CommentsRSS.aspx</link><description>勤学似春起之苗，不见其增，日有所长；
辍学如磨刀之石，不见其损，日所有亏!</description><language>zh-cn</language><pubDate>Fri, 02 May 2008 03:08:48 GMT</pubDate><lastBuildDate>Fri, 02 May 2008 03:08:48 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: Access数据库出现的0x80004005 Unspecified error问题</title><link>http://www.cnblogs.com/WuCountry/archive/2008/05/01/312944.html#1178430</link><dc:creator>nachina</dc:creator><author>nachina</author><pubDate>Thu, 01 May 2008 01:13:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/05/01/312944.html#1178430</guid><description><![CDATA[删除临时文件可以解决。。。。<img src ="http://www.cnblogs.com/WuCountry/aggbug/1178430.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">nachina</a> 2008-05-01 09:13 <a href="http://www.cnblogs.com/WuCountry/archive/2008/05/01/312944.html#1178430#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: Access数据库出现的0x80004005 Unspecified error问题</title><link>http://www.cnblogs.com/WuCountry/archive/2008/05/01/312944.html#1178428</link><dc:creator>nachina</dc:creator><author>nachina</author><pubDate>Thu, 01 May 2008 01:09:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/05/01/312944.html#1178428</guid><description><![CDATA[我也遇到了同样的问题。<img src ="http://www.cnblogs.com/WuCountry/aggbug/1178428.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">nachina</a> 2008-05-01 09:09 <a href="http://www.cnblogs.com/WuCountry/archive/2008/05/01/312944.html#1178428#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: 小记一下DirectX里的Video和Audio</title><link>http://www.cnblogs.com/WuCountry/archive/2008/04/29/807434.html#1175984</link><dc:creator>Sdhjt</dc:creator><author>Sdhjt</author><pubDate>Tue, 29 Apr 2008 05:13:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/04/29/807434.html#1175984</guid><description><![CDATA[呵呵，我也遇到同样的问题，后来发现DirectX.AudioVideoPlayback.Video.SeekCurrentPosition的时间是以10000000分之一做单位的，所以如果你以秒为单位，需要乘以10000000<br>by Sdhjt<img src ="http://www.cnblogs.com/WuCountry/aggbug/1175984.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">Sdhjt</a> 2008-04-29 13:13 <a href="http://www.cnblogs.com/WuCountry/archive/2008/04/29/807434.html#1175984#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: Effective C# 原则15：使用using和try/finally来做资源清理(译)</title><link>http://www.cnblogs.com/WuCountry/archive/2008/04/14/663291.html#1153312</link><dc:creator>WhyCome[at]live.cn </dc:creator><author>WhyCome[at]live.cn </author><pubDate>Mon, 14 Apr 2008 12:52:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/04/14/663291.html#1153312</guid><description><![CDATA[有时间可以说说<br>连接池，呵呵<img src ="http://www.cnblogs.com/WuCountry/aggbug/1153312.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">WhyCome[at]live.cn </a> 2008-04-14 20:52 <a href="http://www.cnblogs.com/WuCountry/archive/2008/04/14/663291.html#1153312#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: ASP.net下大文件上传的解决方案及WebbUpload组件源码</title><link>http://www.cnblogs.com/WuCountry/archive/2008/04/09/306725.html#1145355</link><dc:creator>QQ-Sugar</dc:creator><author>QQ-Sugar</author><pubDate>Wed, 09 Apr 2008 09:07:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/04/09/306725.html#1145355</guid><description><![CDATA[我的网站还使用了discuz!NT的论坛，与这个有冲突，导致论坛不能上传文件了。<br>使用了泉水的方法解决了。<br>但泉水使用的是2.0。1.1没有AppRelativeCurrentExecutionFilePath这个属性，我改为context.Request.RawUrl就可以了。<img src ="http://www.cnblogs.com/WuCountry/aggbug/1145355.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">QQ-Sugar</a> 2008-04-09 17:07 <a href="http://www.cnblogs.com/WuCountry/archive/2008/04/09/306725.html#1145355#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: 为什么程序必须得会C语言？</title><link>http://www.cnblogs.com/WuCountry/archive/2008/04/08/1137288.html#1142213</link><dc:creator>Justin</dc:creator><author>Justin</author><pubDate>Tue, 08 Apr 2008 05:27:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/04/08/1137288.html#1142213</guid><description><![CDATA[赞一下，深有同感：用高级语言编程，用低级语言思考！<br><br>btw：欢迎lz加入Debug探索团队<br><br><img src ="http://www.cnblogs.com/WuCountry/aggbug/1142213.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">Justin</a> 2008-04-08 13:27 <a href="http://www.cnblogs.com/WuCountry/archive/2008/04/08/1137288.html#1142213#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: 用C＃预览视频文件（简略）</title><link>http://www.cnblogs.com/WuCountry/archive/2008/04/02/795381.html#1134939</link><dc:creator>Simon Gui</dc:creator><author>Simon Gui</author><pubDate>Wed, 02 Apr 2008 09:37:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/04/02/795381.html#1134939</guid><description><![CDATA[您好：<br>按照您的方法，发现当设置IMediaDet.FileName = &quot;\\192.168.1.1\Video\1.wmv&quot;,这样的格式时。会报出用户名和密码错误，请问一下是什么原因<img src ="http://www.cnblogs.com/WuCountry/aggbug/1134939.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">Simon Gui</a> 2008-04-02 17:37 <a href="http://www.cnblogs.com/WuCountry/archive/2008/04/02/795381.html#1134939#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: Effective C# 原则18：实现标准的处理(Dispose)模式(译)</title><link>http://www.cnblogs.com/WuCountry/archive/2008/04/01/667320.html#1132270</link><dc:creator>jujusharp</dc:creator><author>jujusharp</author><pubDate>Tue, 01 Apr 2008 02:06:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/04/01/667320.html#1132270</guid><description><![CDATA[ 支持一个:-)<img src ="http://www.cnblogs.com/WuCountry/aggbug/1132270.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">jujusharp</a> 2008-04-01 10:06 <a href="http://www.cnblogs.com/WuCountry/archive/2008/04/01/667320.html#1132270#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: Effective C# 原则14：使用构造函数链(译)</title><link>http://www.cnblogs.com/WuCountry/archive/2008/03/30/662756.html#1129769</link><dc:creator>沙加</dc:creator><author>沙加</author><pubDate>Sun, 30 Mar 2008 05:31:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/03/30/662756.html#1129769</guid><description><![CDATA[@张荣华<br>不会产生多次,  相同的string只会存在一份. 但还是不如string.Empty好.<img src ="http://www.cnblogs.com/WuCountry/aggbug/1129769.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">沙加</a> 2008-03-30 13:31 <a href="http://www.cnblogs.com/WuCountry/archive/2008/03/30/662756.html#1129769#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: [导入]上传大文件时，找不到服务器的错误问题!</title><link>http://www.cnblogs.com/WuCountry/archive/2008/03/25/305651.html#1121530</link><dc:creator>MK</dc:creator><author>MK</author><pubDate>Tue, 25 Mar 2008 08:47:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/03/25/305651.html#1121530</guid><description><![CDATA[Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles s.Click<br>        If myfile.PostedFile.ContentLength = 0 Then<br>            lb1.Text = &quot;上传失败,文件不存在,请输入正确的上传地址&quot;<br>        Else<br>            Dim oldfilename, splitfilename(), newfilename As String<br>            oldfilename = myfile.PostedFile.FileName<br>            splitfilename = Split(oldfilename, &quot;\&quot;)<br>            newfilename = splitfilename(splitfilename.Length - 1) '获取文件名字<br>            Dim conn As SqlConnection<br>            conn = New SqlConnection<br>            conn.ConnectionString = &quot;server=;uid=sa;pwd=;database=news&quot;<br>            conn.Open()<br>            Dim str As String<br>            str = &quot;select id from shipin where name='&quot; &amp; newfilename &amp; &quot;'&quot;<br>            Dim cmd As SqlCommand<br>            cmd = New SqlCommand(str, conn)<br>            Dim id As Integer<br>            id = cmd.ExecuteScalar()<br>            conn.Close()<br>            Try<br>                If id &gt; 0 Then<br>                    lb1.Text = &quot;已经上传过相同的文件,请换文件名继续上传&quot;<br>                Else<br>                    myfile.PostedFile.SaveAs(Server.MapPath(&quot;.&quot;) &amp; &quot;\play\&quot; &amp; newfilename)<br>                    lb1.Text = &quot;上传成功&quot; &amp; newfilename<br>                End If<br><br><br>            Catch ex As Exception<br>                Response.Write(&quot;hello&quot;)<br>            End Try<br>        End If<br>    End Sub<br>请问我这个程序有错么? 我上传的只有4m多的东西啊,也会失败的 <img src ="http://www.cnblogs.com/WuCountry/aggbug/1121530.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">MK</a> 2008-03-25 16:47 <a href="http://www.cnblogs.com/WuCountry/archive/2008/03/25/305651.html#1121530#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: 用C＃预览视频文件（简略）</title><link>http://www.cnblogs.com/WuCountry/archive/2008/03/16/795381.html#1108305</link><dc:creator>holmesyj</dc:creator><author>holmesyj</author><pubDate>Sun, 16 Mar 2008 04:41:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/03/16/795381.html#1108305</guid><description><![CDATA[大哥，你好！<br><br>你最后补充的里面说到：“MediaDet这个类功能有限，不能自手动设定Filter来截取视频，所以不能完全指望它能截取所有图片。 <br>其次，它不仅不能自己设置Filter，更不会为你添加Filter，也就是说，如果目标机器上没有安装一些特殊的Filter，这个方法也是不能生成预览图片的。”<br><br>那我如果想要自己加入自己的Filter，手动去构造graph，应该怎么去做呢？我这里有个代码是派生ISampleGrabberCB类，然后利用IMediaDet去抓图。但是发现不能处理RMVB，跑到你这之后才知道是因为IMediaDet类的功能有限。<br><br>我现在要提取视频所有的帧，那我应该怎么去做呢？麻烦指点一下！谢谢！<img src ="http://www.cnblogs.com/WuCountry/aggbug/1108305.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">holmesyj</a> 2008-03-16 12:41 <a href="http://www.cnblogs.com/WuCountry/archive/2008/03/16/795381.html#1108305#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: 对C#下函数，委托，事件的一点理解！</title><link>http://www.cnblogs.com/WuCountry/archive/2008/03/04/576030.html#1090359</link><dc:creator>饮酒买醉</dc:creator><author>饮酒买醉</author><pubDate>Tue, 04 Mar 2008 08:09:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/03/04/576030.html#1090359</guid><description><![CDATA[谢谢，偶一直对委托和事件犯糊涂。看了这篇入门的文章清晰了很多。特别是“事件，是用来动态管理委托的，而委托是与函数对应的”这句话，能使入门者很容易的理解。<img src ="http://www.cnblogs.com/WuCountry/aggbug/1090359.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">饮酒买醉</a> 2008-03-04 16:09 <a href="http://www.cnblogs.com/WuCountry/archive/2008/03/04/576030.html#1090359#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: 分析在服务器上设置计时器的问题。</title><link>http://www.cnblogs.com/WuCountry/archive/2008/03/03/317970.html#1088449</link><dc:creator>oxsir</dc:creator><author>oxsir</author><pubDate>Mon, 03 Mar 2008 02:40:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/03/03/317970.html#1088449</guid><description><![CDATA[最近我也研究了一下windows 2003 + .net 2.0 + IIS6.0下的计时器,发现计时器会莫名终止.<br>后来测试发现,其实这是IIS6.0的应用程序池回收机制在"捣鬼".默认应用程序池空闲20分钟进程就会被回收,这时计时器也就停止了....<br><img src ="http://www.cnblogs.com/WuCountry/aggbug/1088449.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">oxsir</a> 2008-03-03 10:40 <a href="http://www.cnblogs.com/WuCountry/archive/2008/03/03/317970.html#1088449#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: Effective C# 原则14：使用构造函数链(译)</title><link>http://www.cnblogs.com/WuCountry/archive/2008/02/18/662756.html#1072337</link><dc:creator>张荣华</dc:creator><author>张荣华</author><pubDate>Mon, 18 Feb 2008 07:19:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/02/18/662756.html#1072337</guid><description><![CDATA[@Adrian<br>我一般是用String.Empty,他是static的，只产生一次，<br>而""是你写多少次，就产生多少次(个人理解)<img src ="http://www.cnblogs.com/WuCountry/aggbug/1072337.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">张荣华</a> 2008-02-18 15:19 <a href="http://www.cnblogs.com/WuCountry/archive/2008/02/18/662756.html#1072337#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: Effective C# 原则38：使用和支持数据绑定(译)</title><link>http://www.cnblogs.com/WuCountry/archive/2008/02/01/691883.html#1060962</link><dc:creator>zyxstar</dc:creator><author>zyxstar</author><pubDate>Fri, 01 Feb 2008 02:49:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/02/01/691883.html#1060962</guid><description><![CDATA[我的测试程序是就样的:<br>第一种情况:不符合预期要求<br>这是将表现与数据类分开时使用的绑定,发现除了初始化时颜色绑定了,当值变化时颜色并不变化<br>namespace BindingUITest<br>{<br>    public partial class Form1 : Form<br>    {<br>        public Form1()<br>        {<br>            InitializeComponent();<br>            src1.Results = src2;<br>            Binding b1 = new Binding(&quot;Text&quot;, src1, &quot;Results.Profit&quot;);<br>            b1.Parse += new ConvertEventHandler(b1_Parse);<br>            Binding b2 = new Binding(&quot;BackColor&quot;, src1, &quot;ProfitForegroundColor&quot;);<br>            this.textBox1.DataBindings.Clear();<br>            this.textBox1.DataBindings.Add(b1);<br>            this.textBox1.DataBindings.Add(b2);<br>        }<br> <br>        void b1_Parse(object sender, ConvertEventArgs e)<br>        {<br>            try { Convert.ToInt32(e.Value); }<br>            catch { MessageBox.Show(&quot;不是数字&quot;); }<br>        }<br>        FinancialDisplayResults src1 = new FinancialDisplayResults();<br>        FinancialResults src2 = new FinancialResults();<br> <br>        private void button1_Click(object sender, EventArgs e)<br>        {<br>            MessageBox.Show(src1.ProfitForegroundColor.ToString());<br>        }<br>        <br>    }<br> <br><br>    /// &lt;summary&gt;<br>    /// 数据类<br>    /// &lt;/summary&gt;<br>    public class FinancialResults<br>    {<br>        private decimal _profit;<br>        public decimal Profit<br>        {<br>            set { _profit = value; }<br>            get { return _profit; }<br>        }<br>     }<br>    /// &lt;summary&gt;<br>    /// 表示数据呈现的类<br>    /// &lt;/summary&gt;<br>    public class FinancialDisplayResults<br>    {<br>        private FinancialResults _results;<br>        public FinancialResults Results<br>        {<br>            set { _results = value; }<br>            get { return _results; }<br>        }<br>        public Color ProfitForegroundColor<br>        {<br>            get<br>            {<br>                return (_results.Profit &gt;= 0) ?<br>                  Color.Blue : Color.Red;<br>            }<br>        }<br>      <br>    }<br>}<br>第二种情况:符合预期要求<br>这是将表现与数据写在一个类时使用的绑定,当值变化时颜色随之变化<br>namespace BindingUITest<br>{<br>    public partial class Form1 : Form<br>    {<br>        public Form1()<br>        {<br>            InitializeComponent();<br>         <br>            Binding b1 = new Binding(&quot;Text&quot;, src2, &quot;Profit&quot;);<br>            b1.Parse += new ConvertEventHandler(b1_Parse);<br>            Binding b2 = new Binding(&quot;BackColor&quot;, src2, &quot;ProfitForegroundColor&quot;);<br>            this.textBox1.DataBindings.Clear();<br>            this.textBox1.DataBindings.Add(b1);<br>            this.textBox1.DataBindings.Add(b2);<br>        }<br> <br>        void b1_Parse(object sender, ConvertEventArgs e)<br>        {<br>            try { Convert.ToInt32(e.Value); }<br>            catch { MessageBox.Show(&quot;不是数字&quot;); }<br>        }<br>        FinancialResults src2 = new FinancialResults();<br>        private void button1_Click(object sender, EventArgs e)<br>        {<br>            MessageBox.Show(src2.ProfitForegroundColor.ToString());<br>        }<br>        <br>    }<br> <br><br>    /// &lt;summary&gt;<br>    /// 数据类与呈现写在一个类中<br>    /// &lt;/summary&gt;<br>    public class FinancialResults<br>    {<br>        private decimal _profit;<br>        public decimal Profit<br>        {<br>            set { _profit = value; }<br>            get { return _profit; }<br>        }<br>        public Color ProfitForegroundColor<br>        {<br>            get<br>            {<br>                return (_profit &gt;= 0) ?<br>                  Color.Blue : Color.Red;<br>            }<br>        }<br>    }<br>}<br><img src ="http://www.cnblogs.com/WuCountry/aggbug/1060962.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">zyxstar</a> 2008-02-01 10:49 <a href="http://www.cnblogs.com/WuCountry/archive/2008/02/01/691883.html#1060962#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: Effective C# 原则38：使用和支持数据绑定(译)</title><link>http://www.cnblogs.com/WuCountry/archive/2008/01/31/691883.html#1060317</link><dc:creator>zyxstar</dc:creator><author>zyxstar</author><pubDate>Thu, 31 Jan 2008 10:34:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/01/31/691883.html#1060317</guid><description><![CDATA[看了你翻译的文章<br>其中:&quot;你可以创建一个新类型，包含UI格式化属性，以及在FinancialResults结构中的原始的存储属性...&quot;<br>这种方式我在VS03,VS05中都无法正确表示UI,如果将数据与UI放在一个类中则可以正常表示,意思就是如果建立了一个新类型,绑定时无法正确显示,除非重新绑定一下<img src ="http://www.cnblogs.com/WuCountry/aggbug/1060317.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">zyxstar</a> 2008-01-31 18:34 <a href="http://www.cnblogs.com/WuCountry/archive/2008/01/31/691883.html#1060317#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: 有兴趣的执行一下这段代码</title><link>http://www.cnblogs.com/WuCountry/archive/2008/01/31/858479.html#1059870</link><dc:creator>林西</dc:creator><author>林西</author><pubDate>Thu, 31 Jan 2008 05:47:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/01/31/858479.html#1059870</guid><description><![CDATA[已经试了。非常不错。谢谢<img src ="http://www.cnblogs.com/WuCountry/aggbug/1059870.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">林西</a> 2008-01-31 13:47 <a href="http://www.cnblogs.com/WuCountry/archive/2008/01/31/858479.html#1059870#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: ASP.net下大文件上传的解决方案及WebbUpload组件源码</title><link>http://www.cnblogs.com/WuCountry/archive/2008/01/31/306725.html#1059860</link><dc:creator>林西</dc:creator><author>林西</author><pubDate>Thu, 31 Jan 2008 05:42:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/01/31/306725.html#1059860</guid><description><![CDATA[非常感谢共享。会考虑用到自己得项目中<img src ="http://www.cnblogs.com/WuCountry/aggbug/1059860.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">林西</a> 2008-01-31 13:42 <a href="http://www.cnblogs.com/WuCountry/archive/2008/01/31/306725.html#1059860#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>请求帮助,调了好几天了,还是有这个问题,哪位好心人帮帮我吧.谢谢了!</title><link>http://www.cnblogs.com/WuCountry/archive/2008/01/25/306725.html#1053038</link><dc:creator>坚持</dc:creator><author>坚持</author><pubDate>Fri, 25 Jan 2008 05:51:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/01/25/306725.html#1053038</guid><description><![CDATA[异常详细信息: System.NullReferenceException: 未将对象引用设置到对象的实例。<br><br>源错误: <br><br><br>行 291:			}<br>行 292:			//Set values of working request<br>行 293:			m_type.GetField(&quot;_contentAvailLength&quot;, m_flags).SetValue(m_request, m_textData.Length);<br>行 294:			m_type.GetField(&quot;_contentTotalLength&quot;, m_flags).SetValue(m_request, m_textData.Length);<br>行 295:			m_type.GetField(&quot;_preloadedContent&quot;, m_flags).SetValue(m_request, m_textData);<br> <br><br>源文件: F:\webbupload\WebbUpload\WebbUploadModule.cs    行: 293 <br><br>堆栈跟踪: <br><br><br>[NullReferenceException: 未将对象引用设置到对象的实例。]<br>   Webb.WAVE.Controls.Upload.WebbHttpModule.AddTextPartToRequest(HttpWorkerRequest m_request, Byte[] m_textData) in F:\webbupload\WebbUpload\WebbUploadModule.cs:293<br>   Webb.WAVE.Controls.Upload.WebbHttpModule.WebbUpload_BeginRequest(Object sender, EventArgs e) in F:\webbupload\WebbUpload\WebbUploadModule.cs:166<br>   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +167<br>   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +117<br><br> <br><img src ="http://www.cnblogs.com/WuCountry/aggbug/1053038.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">坚持</a> 2008-01-25 13:51 <a href="http://www.cnblogs.com/WuCountry/archive/2008/01/25/306725.html#1053038#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item><item><title>re: Effective C# 原则20：明辨接口实现和虚函数重载的区别(译)</title><link>http://www.cnblogs.com/WuCountry/archive/2008/01/23/670491.html#1050375</link><dc:creator>强就一个字</dc:creator><author>强就一个字</author><pubDate>Wed, 23 Jan 2008 09:33:00 GMT</pubDate><guid>http://www.cnblogs.com/WuCountry/archive/2008/01/23/670491.html#1050375</guid><description><![CDATA[override应该翻译为重写把，重载是函数名相同参数不同啊……………………<img src ="http://www.cnblogs.com/WuCountry/aggbug/1050375.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://WuCountry.cnblogs.com/" target="_blank">强就一个字</a> 2008-01-23 17:33 <a href="http://www.cnblogs.com/WuCountry/archive/2008/01/23/670491.html#1050375#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div><div align='right'><script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_alternate_color = "FFFFFF";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_ad_type = "text_image";
google_ad_channel ="8623530809";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_text = "000000";
google_color_url = "008000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></description></item></channel></rss>