<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#</title><link>http://blog.csdn.net/null1/category/353347.aspx</link><description /><dc:language>zh-CN</dc:language><lastUpdateTime>Tue, 07 Oct 2008 09:08:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>尚飞</dc:creator><title>用C#生成并保存DbF格式的方法</title><link>http://blog.csdn.net/null1/archive/2008/10/07/3025626.aspx</link><pubDate>Tue, 07 Oct 2008 08:57:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2008/10/07/3025626.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/3025626.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2008/10/07/3025626.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/3025626.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3025626</trackback:ping><description>&lt;P&gt;在开发一个项目时，用户要求数据可以保存到DBF数据库中。因此在结束后将代码简化提出来，希望对大家有些帮助，类代码如下：&lt;/P&gt;
&lt;DIV class=highlighter&gt;
&lt;OL class=highlighter-c&gt;
&lt;LI&gt;&lt;SPAN class=keyword&gt;using&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;System;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=alt&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=keyword&gt;using&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;System.Collections;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=keyword&gt;using&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;System.Data;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=alt&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=keyword&gt;using&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;System.Data.OleDb;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;&lt;img src ="http://blog.csdn.net/null1/aggbug/3025626.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>尚飞</dc:creator><title>C#重用UDP端口号</title><link>http://blog.csdn.net/null1/archive/2008/10/07/3025598.aspx</link><pubDate>Tue, 07 Oct 2008 08:46:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2008/10/07/3025598.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/3025598.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2008/10/07/3025598.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/3025598.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3025598</trackback:ping><description>&amp;nbsp;以前碰到一个问题，希望能够重用UDP的端口号，但一直没有成功。&lt;BR&gt;今天偶然看到一段代码，竟然可以达到目的，欣喜中记下：&lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
&lt;DIV class=highlighter&gt;
&lt;OL class=highlighter-c&gt;
&lt;LI&gt;&lt;SPAN&gt;IPAddress&amp;nbsp;groupAddress&amp;nbsp;=&amp;nbsp;IPAddress.Parse(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=string&gt;"239.0.84.11"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;);&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class=alt&gt;&lt;SPAN&gt;Socket&amp;nbsp;Listener&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=keyword&gt;new&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Socket(&amp;nbsp;AddressFamily.InterNetwork,SocketType.Dgram,&amp;nbsp;ProtocolType.Udp&amp;nbsp;);&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Listener.&lt;img src ="http://blog.csdn.net/null1/aggbug/3025598.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>尚飞</dc:creator><title>C#解决读写包含汉字的txt文件时乱码的问题</title><link>http://blog.csdn.net/null1/archive/2008/10/07/3025594.aspx</link><pubDate>Tue, 07 Oct 2008 08:43:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2008/10/07/3025594.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/3025594.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2008/10/07/3025594.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/3025594.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3025594</trackback:ping><description>&lt;P&gt;为了解决这个问题，我写了一个类，来取得一个文本文件的encoding，这样我们就可以创建对应的StreamReader和StreamWriter来读写，保证不会出现乱码现象。其实原理很简单，文本编辑器(比如XP自带的记事本)在生成文本文件时，如果编码格式和系统默认的编码(中文系统下默认为GB2312)不一致时，会在txt文件开头部分添加特定的;编码字节序标识(Encoding Bit Order Madk，简写为BOM)”，类似PE格式的"MZ"文件头。这样它在读取时就可以根据这个BOM来确定该文本文件生成时所使用的Encoding。这个BOM我们用记事本等程序打开默认是看不到的，但是用stream按字节读取时是可以读到的。我的这个TxtFileEncoding类就是根据这个BOM;文件头” 来确定txt文件生成时用到的编码的。 &lt;BR&gt;由于在GB2312和UTF7编码都没有BOM，所以需要指定一个默认的Encoding，在找不到合法的BOM时，将返回这个Encoding。有谁知道如何区分GB2312和UTF7编码txt文件的方法，也请告诉我。 &lt;BR&gt;由于只是static方法，&lt;img src ="http://blog.csdn.net/null1/aggbug/3025594.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>尚飞</dc:creator><title>Thread中的Join问题</title><link>http://blog.csdn.net/null1/archive/2008/06/26/2587553.aspx</link><pubDate>Thu, 26 Jun 2008 09:38:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2008/06/26/2587553.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/2587553.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2008/06/26/2587553.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/2587553.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2587553</trackback:ping><description>Thread中的Join问题&lt;img src ="http://blog.csdn.net/null1/aggbug/2587553.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>null1</dc:creator><title>解决.NET中打印对话框的最大化的问题</title><link>http://blog.csdn.net/null1/archive/2008/04/25/2327813.aspx</link><pubDate>Fri, 25 Apr 2008 15:38:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2008/04/25/2327813.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/2327813.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2008/04/25/2327813.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/2327813.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2327813</trackback:ping><description>打印对话框&lt;img src ="http://blog.csdn.net/null1/aggbug/2327813.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>null1</dc:creator><title>关于窗口中TopMost属性的一个问题</title><link>http://blog.csdn.net/null1/archive/2008/01/25/2064467.aspx</link><pubDate>Fri, 25 Jan 2008 08:51:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2008/01/25/2064467.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/2064467.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2008/01/25/2064467.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/2064467.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2064467</trackback:ping><description>TopMost属性&lt;img src ="http://blog.csdn.net/null1/aggbug/2064467.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>null1</dc:creator><title>关于vs2003中propertygrid的keypress事件无效的解决过程</title><link>http://blog.csdn.net/null1/archive/2008/01/11/2037608.aspx</link><pubDate>Fri, 11 Jan 2008 15:45:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2008/01/11/2037608.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/2037608.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2008/01/11/2037608.aspx#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/2037608.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2037608</trackback:ping><description>关于vs2003中propertygrid的keypress事件无效的解决过程&lt;img src ="http://blog.csdn.net/null1/aggbug/2037608.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>null1</dc:creator><title>关于枚举COM接口的问题</title><link>http://blog.csdn.net/null1/archive/2008/01/03/2022886.aspx</link><pubDate>Thu, 03 Jan 2008 18:49:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2008/01/03/2022886.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/2022886.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2008/01/03/2022886.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/2022886.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2022886</trackback:ping><description>枚举COM接口&lt;img src ="http://blog.csdn.net/null1/aggbug/2022886.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>null1</dc:creator><title>使用UDPClient发送和接收数据</title><link>http://blog.csdn.net/null1/archive/2008/01/03/2022819.aspx</link><pubDate>Thu, 03 Jan 2008 18:27:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2008/01/03/2022819.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/2022819.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2008/01/03/2022819.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/2022819.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2022819</trackback:ping><description>使用UDPClient发送和接收数据&lt;img src ="http://blog.csdn.net/null1/aggbug/2022819.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>null1</dc:creator><title>滤波算法</title><link>http://blog.csdn.net/null1/archive/2007/12/14/1934327.aspx</link><pubDate>Fri, 14 Dec 2007 09:01:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2007/12/14/1934327.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/1934327.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2007/12/14/1934327.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/1934327.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1934327</trackback:ping><description>滤波算法&lt;img src ="http://blog.csdn.net/null1/aggbug/1934327.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>null1</dc:creator><title>帮助文件的调用</title><link>http://blog.csdn.net/null1/archive/2007/12/14/1934316.aspx</link><pubDate>Fri, 14 Dec 2007 09:00:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2007/12/14/1934316.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/1934316.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2007/12/14/1934316.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/1934316.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1934316</trackback:ping><description>帮助文件的调用&lt;img src ="http://blog.csdn.net/null1/aggbug/1934316.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>null1</dc:creator><title>坐标系统的转换</title><link>http://blog.csdn.net/null1/archive/2007/12/11/1928558.aspx</link><pubDate>Tue, 11 Dec 2007 08:15:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2007/12/11/1928558.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/1928558.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2007/12/11/1928558.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/1928558.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1928558</trackback:ping><description>可实现象素、厘米，毫米，英寸等单位的转换&lt;img src ="http://blog.csdn.net/null1/aggbug/1928558.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>null1</dc:creator><title>实现PointF和SizeF的属性在PropertyGrid中可编辑的方法</title><link>http://blog.csdn.net/null1/archive/2007/12/11/1928555.aspx</link><pubDate>Tue, 11 Dec 2007 08:07:00 GMT</pubDate><guid>http://blog.csdn.net/null1/archive/2007/12/11/1928555.aspx</guid><wfw:comment>http://blog.csdn.net/null1/comments/1928555.aspx</wfw:comment><comments>http://blog.csdn.net/null1/archive/2007/12/11/1928555.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/null1/comments/commentRss/1928555.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1928555</trackback:ping><description>在PropertyGrid中，PointF和SizeF类型的属性是只读的，我分析了DotNet中的Point的定义，编写了2个属性类，以此实现在PropertyGrid中可以象Point那样直接修改数据的功能。&lt;img src ="http://blog.csdn.net/null1/aggbug/1928555.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>