<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>陈锋-TechBlog</title><link>http://blog.csdn.net/sukhoeing/</link><description>思考，实践，交流</description><dc:language>zh-CN</dc:language><lastUpdateTime>Tue, 25 Dec 2007 21:31:17 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>陈锋</dc:creator><title>如何得知一个__ComObject对象的实际类型</title><link>http://blog.csdn.net/sukhoeing/archive/2007/12/25/1967139.aspx</link><pubDate>Tue, 25 Dec 2007 21:31:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/12/25/1967139.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1967139.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/12/25/1967139.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1967139.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1967139</trackback:ping><description>如何得知一个__ComObject对象的实际类型&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1967139.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>一个双向链表的单指针实现</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/27/1904235.aspx</link><pubDate>Tue, 27 Nov 2007 15:11:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/27/1904235.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1904235.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/27/1904235.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1904235.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1904235</trackback:ping><description>双向链表的单指针实现，用于某些内存异常紧张的领域&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1904235.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>C++学习 - 快速排序，更加优化的实现</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/23/1897255.aspx</link><pubDate>Fri, 23 Nov 2007 00:39:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/23/1897255.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1897255.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/23/1897255.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1897255.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1897255</trackback:ping><description>头文件：
   1:  #pragma once   2:  #include &amp;lt;vector&amp;gt;   3:  &amp;nbsp;   4:  namespace FengChen   5:  {   6:  &amp;nbsp;   7:  template&amp;lt;typename T&amp;gt;    8:  class QuickSortDemo   9:  {  10:  public:  11:      QuickSortDemo(void){}  12:      ~QuickSortDemo(void){}  13:  &amp;nbsp;  14:      void DoSort(std::vector&amp;lt;T&amp;gt;&amp;amp; );  15:  &amp;nbsp;  16:      T Select(const std::vector&amp;lt;T&amp;gt;&amp;amp; Input, unsigned i); // 线性时间复杂度的选择第i小值的算法，递归版本  17:  private:  18:      // 选择轴值  19:      unsigned SelectPivot(&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1897255.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>Effective C++学习记录之Things To Remember</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/19/1891345.aspx</link><pubDate>Mon, 19 Nov 2007 09:13:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/19/1891345.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1891345.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/19/1891345.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1891345.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1891345</trackback:ping><description>Effective C++的Things to remember之总结&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1891345.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>目前.net平台上的支持的语言列表</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1890622.aspx</link><pubDate>Sun, 18 Nov 2007 15:22:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1890622.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1890622.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1890622.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1890622.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1890622</trackback:ping><description>.NET Language Sites列出了目前target到.net平台的所有语言。值得一看哦，貌似比target到JVM的多哦。而且下面列举了一些关于CLR方面比较深入的书籍，很多非常值得一看的说。 顺便BS下Eclipse的速度，同样是open source，怎么和sharpdevelop差距那么大呢？本来VS05的速度也很慢，不过VS08的性能就提高了很多。&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1890622.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>关于.net中反射的一个小问题</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1890584.aspx</link><pubDate>Sun, 18 Nov 2007 15:08:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1890584.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1890584.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1890584.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1890584.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1890584</trackback:ping><description>若果一个函数有个参数是传引用的，比如ref 或者out，该如何得到被修改的结果呢？请看如下的代码Int32[] input = new Int32{1,2};txtOut.AppendText(input.Length.ToString() + Environment.NewLine);// txtOut is a multiline enabled textbox in my test formMethodInfo info = typeof(Array).GetMethod("Resize").MakeGenericMethod(typeof(Int32));Object[] paras = new Object[] { input, 4 }; //如果是out型的，直接传个null就行。info.Invoke(null, BindingFlags.InvokeMethod, null, paras, null);input = paras[0] as Int32[]; // get the written argumentCLR似乎会修改掉&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1890584.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>关于.Net安全性的两个小问题</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1891028.aspx</link><pubDate>Sun, 18 Nov 2007 11:42:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1891028.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1891028.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1891028.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1891028.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1891028</trackback:ping><description>1.如何在.Net 程序你检查当前的windows安全设置以及CAS安全设置检查当前程序是否有admin的权限：String			sddlAdmins = "S-1-5-32-544";  //Sid of administrators group		IdentityReference			AdminsSid = new			SecurityIdentifier(sddlAdmins);		if (WindowsIdentity.GetCurrent().Groups.Contains(AdminsSid))		    Console.WriteLine("Running with admin rights!");		检查当前运行程序集的被CAS赋予的PermissionSets:How to Get Permissions Assign to Current Assembly in VS.NET 2005 Using C#. 另外如果要做一个允许客户加入自定义扩展的程序，该如何严格限制扩展dll的安全性呢，从两方面入手：1,用一个P&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1891028.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>关于NTFS的Alternate Data Streams</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1890782.aspx</link><pubDate>Sun, 18 Nov 2007 01:20:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1890782.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1890782.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/18/1890782.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1890782.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1890782</trackback:ping><description>近日有人问起，如何在文件的摘要属性中增加一个自定义的项。起初我想到Office文档实际上是可以通过OLE来更改，但是其实有些文件比如Mp3，甚至txt文件也有摘要的，这些属性存放在那里呢，经过一番研究，发现实际上是存放在一个叫做Alternate Data Streams的地方，这个东东实际上是另外一个和当前文件相关联的文件。具体请看以下的link，并且你可以在程序中控制这个文件，最后code project 上已经有人给出sample了。我就懒得写了。Windows NTFS Alternate Data Streams			FAQ: Alternate Data Streams in NTFS			How To Use NTFS Alternate Data Streams			Manipulate Alternate Data Streams			&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1890782.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>P/Invoke传递的callback中会用到的一个很有用的属性</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/17/1890661.aspx</link><pubDate>Sat, 17 Nov 2007 23:43:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/17/1890661.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1890661.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/17/1890661.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1890661.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1890661</trackback:ping><description>就像这个帖子中提到的，如果要调用C/C++ dll export出来的一个函数，并且要传一个callback的delegate进去，就会产生一个问题: delegate默认的函数调用约定是stdcall，但是C++端一般会要求这个callback是cdecl的。这个问题在.net 1.1中没有好的解决方法，只能反汇编你的assembly然后手动修改对应delegate的属性。在.net 2.0中，可以使用UnmanagedFunctionPointer Attribute来解决这个问题。因为它可以控制delegate中函数调用的calling convention。这个在.net CF编程中应该会比较有用，希望能够帮助有此需求的朋友。&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1890661.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>又一个关于反射的问题</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/17/1890642.aspx</link><pubDate>Sat, 17 Nov 2007 23:32:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/17/1890642.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1890642.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/17/1890642.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1890642.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1890642</trackback:ping><description>一个客户说，他想通过load一个winform的exe来检查其中控件的属性值，比如tag，text等等。貌似合理，可他就是拿不到正确的属性。实际上，如果你不构造一个这个form的实例，不可能拿到这些属性。你在winform designer中输入的值都被vs用codedom的方法在form的InitializeComponent中生成比如a.text = ""此类的语句，也就是说你只能在构造这个类之后，才能通过对实例反射的方法得到这些属性。&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1890642.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>C++学习练手之- RadixSort</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/15/1887259.aspx</link><pubDate>Thu, 15 Nov 2007 10:56:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/15/1887259.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1887259.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/15/1887259.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1887259.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1887259</trackback:ping><description>using namespace std; // 把32位整数看成8位的16进制整数void RadixSort(vector&amp;amp;lt;int&amp;amp;gt;&amp;amp;amp; v){&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; vector&amp;amp;lt;int&amp;amp;gt; tempStor(v.size());&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; vector&amp;amp;lt;int&amp;amp;gt; offset(0x10);&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; vector&amp;amp;lt;int&amp;amp;gt; count(0x10);  &amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; // 按照16进制对32位整数进行排序,总共进行8趟&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; for (int digit = 0; digit &amp;amp;lt; 8; digit++)&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; {&amp;amp;nbsp;&amp;amp;nbsp;&amp;am&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1887259.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>C++ 学习练手 - 双向链表的模板实现  </title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/01/1861589.aspx</link><pubDate>Thu, 01 Nov 2007 17:15:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/01/1861589.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1861589.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/01/1861589.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1861589.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1861589</trackback:ping><description>C++ 学习练手 - 双向链表的模板实现  &lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1861589.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>C++ 学习练手 - 数组型栈的模板实现 </title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/01/1861574.aspx</link><pubDate>Thu, 01 Nov 2007 17:07:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/01/1861574.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1861574.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/01/1861574.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1861574.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1861574</trackback:ping><description>C++ 学习练手 - 数组型栈的模板实现&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1861574.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>C++ 学习练手 - 数组型队列的模板实现</title><link>http://blog.csdn.net/sukhoeing/archive/2007/11/01/1861546.aspx</link><pubDate>Thu, 01 Nov 2007 16:53:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/11/01/1861546.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1861546.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/11/01/1861546.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1861546.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1861546</trackback:ping><description>学习C++，拿基础数据结构来练手。&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1861546.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>陈锋</dc:creator><title>关于.net framework 2.0安装中出现的0x80131107错误的解决方案大全</title><link>http://blog.csdn.net/sukhoeing/archive/2007/10/30/1856170.aspx</link><pubDate>Tue, 30 Oct 2007 11:10:00 GMT</pubDate><guid>http://blog.csdn.net/sukhoeing/archive/2007/10/30/1856170.aspx</guid><wfw:comment>http://blog.csdn.net/sukhoeing/comments/1856170.aspx</wfw:comment><comments>http://blog.csdn.net/sukhoeing/archive/2007/10/30/1856170.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/sukhoeing/comments/commentRss/1856170.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=1856170</trackback:ping><description>关于.net framework 2.0安装中出现的0x80131107错误的解决方案&lt;img src ="http://blog.csdn.net/sukhoeing/aggbug/1856170.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>