<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>chenyq2008的专栏</title><link>http://blog.csdn.net/chenyq2008/</link><description /><dc:language>zh-CN</dc:language><lastUpdateTime>Sat, 29 Nov 2008 11:22:00 GMT</lastUpdateTime><ttl>60</ttl><item><dc:creator>chenyq2008</dc:creator><title>在 DELPHI 中 procedure 型变量与 method 型变量的区别</title><link>http://blog.csdn.net/chenyq2008/archive/2008/11/29/3408381.aspx</link><pubDate>Sat, 29 Nov 2008 11:21:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/11/29/3408381.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/3408381.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/11/29/3408381.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/3408381.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3408381</trackback:ping><description>Procedure型变量： &lt;br /&gt;在DELPHI中，函数、过程的地址可以赋给一个特殊类型的变量，变量可用如下方式声明： &lt;br /&gt;var p : procedure(num:integer); //过程 &lt;br /&gt;或： &lt;br /&gt;var f : function(num:integer):integer; //函数 &lt;br /&gt;也可定义一个过程（或函数）类型，再定义该类型的变量，如： &lt;br /&gt;type TMyProc = Procedure(num:integer); &lt;br /&gt;var p : TMyProc; &lt;br /&gt;&lt;br /&gt;example: &lt;br /&gt;type TMyProc= procedure (filename : string); //定义过程类型 &lt;br /&gt;procedure clearfile(filename : string); &lt;br /&gt;begin &lt;br /&gt;{….} &lt;br /&gt;end ; &lt;br /&gt;… &lt;br /&gt;var p:TMyProc; //定义过程变量 &lt;br /&gt;… &lt;br /&gt;p := clearfile; //&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/3408381.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>关于继承的方式测试</title><link>http://blog.csdn.net/chenyq2008/archive/2008/10/06/3020217.aspx</link><pubDate>Mon, 06 Oct 2008 09:59:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/10/06/3020217.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/3020217.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/10/06/3020217.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/3020217.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=3020217</trackback:ping><description>&lt;br /&gt;unit Unit1;&lt;br /&gt;interface&lt;br /&gt;uses&lt;br /&gt;  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,&lt;br /&gt;  Dialogs, StdCtrls;&lt;br /&gt;type&lt;br /&gt; TBase=class&lt;br /&gt; public&lt;br /&gt;   function AAA:string;&lt;br /&gt;   function BBB:string;virtual;&lt;br /&gt;   function CCC:string;&lt;br /&gt; end;&lt;br /&gt; TA=class(TBase)&lt;br /&gt; public&lt;br /&gt;   function AAA:string;&lt;br /&gt;   function BBB:string;override;&lt;br /&gt;   function CCC&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/3020217.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>delphi变量内存分配与释放</title><link>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2990096.aspx</link><pubDate>Sat, 27 Sep 2008 23:20:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2990096.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2990096.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2990096.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2990096.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2990096</trackback:ping><description>变量内存分配&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2990096.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>堆、栈及静态数据区详解</title><link>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2990070.aspx</link><pubDate>Sat, 27 Sep 2008 22:57:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2990070.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2990070.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2990070.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2990070.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2990070</trackback:ping><description>&lt;br /&gt;五大内存分区&lt;br /&gt;    在C++中，内存分成5个区，他们分别是堆、栈、自由存储区、全局/静态存储区和常量存储区。&lt;br /&gt;    栈，就是那些由编译器在需要的时候分配，在不需要的时候自动清楚的变量的存储区。里面的变量通常是局部变量、函数参数等。&lt;br /&gt;    堆，就是那些由new分配的内存块，他们的释放编译器不去管，由我们的应用程序去控制，一般一个new就要对应一个delete。如果程序员没有释放掉，那么在程序结束后，操作系统会自动回收。&lt;br /&gt;    自由存储区，就是那些由malloc等分配的内存块，他和堆是十分相似的，不过它是用free来结束自己的生命的。&lt;br /&gt;    全局/静态存储区，全局变量和静态变量被分配到同一块内存中，在以前的C语言中，全局变量又分为初始化的和未初始化的，在C++里面没有这个区分了，他们共同占用同一块内存区。&lt;br /&gt;    常量存储区，这是一块比较特殊的存储区，他们里面存&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2990070.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>关于Delphi中string的一些理解</title><link>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2990003.aspx</link><pubDate>Sat, 27 Sep 2008 22:19:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2990003.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2990003.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2990003.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2990003.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2990003</trackback:ping><description>delphi使用的object pascal对字符串类型提供了内建支持&lt;br /&gt;&lt;br /&gt;一种简单的shortstring是为兼容turbo pascal等老版本&lt;br /&gt;而保留的，具体实现是一个最大256字节的数组，&lt;br /&gt;第0个字节保存字符串的长度，然后依次是1,2...n&lt;br /&gt;结尾没有#0标识，因此老一点讲pascal的书里面都是直接用&lt;br /&gt;str[0]访问字符串str的长度的……此类型已基本上被遗弃&lt;br /&gt;&lt;br /&gt;新的所谓longstring类型是从delphi2开始引入的，因为&lt;br /&gt;delphi2开始支持32位win,并加入了对pchar的内建支持&lt;br /&gt;具体实现是一块动态分配的内存块，内存块的前两个dword&lt;br /&gt;保存着此字符串的长度和引用计数器等等信息，&lt;br /&gt;因为是用一个dword保存长度，因此字符串长度可以非常大&lt;br /&gt;呵呵，具体多大其实根本没有意义，反正用不完了 :)&lt;br /&gt;然后字符串的末尾以#0结束，以兼容window用的sz字符串类型&lt;br /&gt;所谓pchar(str)转换，其实只是取字符串的头指针罢了&lt;br /&gt;（注意这里的头指针直接指&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2990003.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>Delphi动态数组介绍</title><link>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2986983.aspx</link><pubDate>Sat, 27 Sep 2008 11:40:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2986983.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2986983.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/09/27/2986983.aspx#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2986983.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2986983</trackback:ping><description>    从 Delphi4起，开始了内建各种类型的动态数组支持。但是，对我们来说动态数组支持似乎做的不够彻底，因为Delphi竟然连删除、插入、移动连续元素的函数都没有提供，让人使用起来总觉得不够爽！！！ J 。作为一名程序员，我们当然要有自己解决问题的能力，下面就让我们简单介绍一下Delphi 下的动态数组。&lt;br /&gt;&lt;br /&gt;在Delphi中，数组类型有静态数组（a : array[0..1024] of integer）、动态数组（var a : array of integer）、指&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2986983.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>ASCII</title><link>http://blog.csdn.net/chenyq2008/archive/2008/09/26/2985199.aspx</link><pubDate>Fri, 26 Sep 2008 22:16:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/09/26/2985199.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2985199.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/09/26/2985199.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2985199.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2985199</trackback:ping><description>美国标准信息交换标准码&lt;br /&gt;　　( American Standard Code for Information Interchange, ASCII )&lt;br /&gt;　　在计算机中，所有的数据在存储和运算时都要使用二进制数表示（因为计算机比较傻，只有0和1两位数的二进制比较适合于它使用），同样的，象a、b、c、d这样的52个字母（包括大写）、以及0、1、2等数字还有一些常用的符号（例如*、#、@等）在计算机中存储时也要使用二进制数来表示，而具体用哪个数字表示哪个符号，当然每个人都可以约定自己的一套（这就叫编码），而大家如果要想互相通讯而不造成混乱，那么大家就必须使用相同的编码规则，于是美国有关的标准化组织就出台了所谓的ASCII编码，统一规定了上述常用符号用哪个二进制数来表示。&lt;br /&gt;　　美国标准信息交换代码是由美国国家标准学会(American National Standard Institute&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2985199.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>字符，字节和编码</title><link>http://blog.csdn.net/chenyq2008/archive/2008/09/26/2985136.aspx</link><pubDate>Fri, 26 Sep 2008 21:50:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/09/26/2985136.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2985136.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/09/26/2985136.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2985136.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2985136</trackback:ping><description>字符，字节和编码&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2985136.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>Delphi编写soap服务器与客户端程序</title><link>http://blog.csdn.net/chenyq2008/archive/2008/04/19/2308037.aspx</link><pubDate>Sat, 19 Apr 2008 22:13:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/04/19/2308037.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2308037.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/04/19/2308037.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2308037.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2308037</trackback:ping><description>delphi soap&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2308037.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>WinSocket模型的探讨——完成端口模型（一）</title><link>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217286.aspx</link><pubDate>Tue, 25 Mar 2008 17:34:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217286.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2217286.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217286.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2217286.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2217286</trackback:ping><description>完成端口模型&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2217286.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>DELPHI中完成端口(IOCP)的简单分析（4）</title><link>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217246.aspx</link><pubDate>Tue, 25 Mar 2008 17:20:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217246.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2217246.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217246.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2217246.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2217246</trackback:ping><description>IOCP&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2217246.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>DELPHI中完成端口(IOCP)的简单分析(3) </title><link>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217238.aspx</link><pubDate>Tue, 25 Mar 2008 17:16:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217238.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2217238.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217238.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2217238.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2217238</trackback:ping><description>IOCP&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2217238.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>DELPHI中完成端口(IOCP)的简单分析（2） </title><link>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217228.aspx</link><pubDate>Tue, 25 Mar 2008 17:13:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217228.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2217228.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217228.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2217228.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2217228</trackback:ping><description>IOCP&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2217228.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>DELPHI中完成端口(IOCP)的简单分析（1）</title><link>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217211.aspx</link><pubDate>Tue, 25 Mar 2008 17:06:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217211.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2217211.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/03/25/2217211.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2217211.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2217211</trackback:ping><description>IOCP&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2217211.aspx" width = "1" height = "1" /&gt;</description></item><item><dc:creator>chenyq2008</dc:creator><title>一份界面规范</title><link>http://blog.csdn.net/chenyq2008/archive/2008/03/16/2188023.aspx</link><pubDate>Sun, 16 Mar 2008 18:55:00 GMT</pubDate><guid>http://blog.csdn.net/chenyq2008/archive/2008/03/16/2188023.aspx</guid><wfw:comment>http://blog.csdn.net/chenyq2008/comments/2188023.aspx</wfw:comment><comments>http://blog.csdn.net/chenyq2008/archive/2008/03/16/2188023.aspx#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://blog.csdn.net/chenyq2008/comments/commentRss/2188023.aspx</wfw:commentRss><trackback:ping>http://tb.blog.csdn.net/TrackBack.aspx?PostId=2188023</trackback:ping><description>界面规范&lt;img src ="http://blog.csdn.net/chenyq2008/aggbug/2188023.aspx" width = "1" height = "1" /&gt;</description></item></channel></rss>