<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<title><![CDATA[skyer小站]]></title>
        <image>
        <title>http://hi.baidu.com</title>
        <link>http://hi.baidu.com</link>
        <url>http://img.baidu.com/img/logo-hi.gif</url>
        </image>
<description><![CDATA[skyer小站]]></description>
<link>http://hi.baidu.com/hack0573</link>
<language>zh-cn</language>
<generator>www.baidu.com</generator>
<ttl>5</ttl>


<item>
        <title><![CDATA[Delphi 的编译指令(3): 常用的预定义条件标识符]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/c28821a7edda479fd04358c4.html]]></link>
        <description><![CDATA[
		
		<pre>VER10  : Turbo Pascal 1
VER20  : Turbo Pascal 2
VER30  : Turbo Pascal 3
VER40  : Turbo Pascal 4
VER50  : Turbo Pascal 5
VER60  : Turbo Pascal 6
VER70  : Turbo Pascal 7 / Borland Pascal 7
VER80  : Delphi 1
VER90  : Delphi 2
VER100 : Delphi 3
VER110 : ?
VER120 : Delphi 4
VER130 : Delphi 5
VER140 : Delphi 6
VER150 : Delphi 7
VER160 : Delphi 8
VER170 : Delphi 2005
VER180 : Delphi 2006
VER185 : Delphi 2007
VER190 : ?
VER200 : Delphi 2009
<hr></pre>
<br>
其他: <hr>
<pre>MSWINDOWS
WIN32
LINUX
KYLIX
CLR
VSNET
CONSOLE
DEBUG
RELEASE
PDEBUGS
UNICODE
UNICODESTRING</pre>
<div >
<div >
<div class="diggit" ><span class="diggnum"><font color="#075db3">0</font></span></div>
<div class="buryit" ><span class="burynum"><font color="#075db3">0</font></span></div>
<div class="clear"> </div>
<span style="display: none" >0</span>
<div class="diggword">(请您对文章做出评价)</div>
</div>
</div> <a href="http://hi.baidu.com/hack0573/blog/item/c28821a7edda479fd04358c4.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/delphi%D4%B0%B5%D8">delphi园地</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/c28821a7edda479fd04358c4.html#comment">查看评论</a>]]></description>
        <pubDate>2009-11-04  11:50</pubDate>
        <category><![CDATA[delphi园地]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/c28821a7edda479fd04358c4.html</guid>
</item>

<item>
        <title><![CDATA[Delphi 的编译指令(2): 条件语句的更多用法]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/c17bf22321352e4eac34dec4.html]]></link>
        <description><![CDATA[
		
		<span class="yy">1. $IFDEF 等同于 $IF DEFINED(...) :</span> <hr>
它们的结束分别是: $ENDIF、$IFEND; 例子中的 VER200 是 Delphi 2009 的标识. <hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
<font color="#008284">{$IFDEF VER200}</font>
ShowMessage(<font color="#0000ff">'这是 Delphi 2009'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#008284">{$IF DEFINED(VER200)}</font>
ShowMessage(<font color="#0000ff">'这是 Delphi 2009'</font>);
<font color="#008284">{$IFEND}</font>
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">2. $IFNDEF 等同于 $IF NOT DEFINED(...) :</span> <hr>
它们的结束分别是: $ENDIF、$IFEND; 例子中的 VER150 是 Delphi 7 的标识. <hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
<font color="#008284">{$IFNDEF VER150}</font>
ShowMessage(<font color="#0000ff">'这不是 Delphi 7'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#008284">{$IF NOT DEFINED(VER150)}</font>
ShowMessage(<font color="#0000ff">'这不是 Delphi 7'</font>);
<font color="#008284">{$IFEND}</font>
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">3. 可以使用 or 和 and:</span> <hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
<font color="#008284">{$DEFINE AAA}</font>
<font color="#008284">{$DEFINE BBB}</font>
<font color="#008284">{$IF DEFINED(AAA) OR DEFINED(BBB)}</font>
ShowMessage(<font color="#0000ff">'条件标识符 AAA 和 BBB 其中一个定义了'</font>);
<font color="#008284">{$IFEND}</font>
<font color="#008284">{$IF DEFINED(AAA) AND DEFINED(BBB)}</font>
ShowMessage(<font color="#0000ff">'条件标识符 AAA 和 BBB 都定义了'</font>);
<font color="#008284">{$IFEND}</font>
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">4. 可以使用 System 单元里的常量:</span> <hr>
我测试了 System 单元里的很多常量都没问题. <hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
ShowMessage(FloatToStr(CompilerVersion)); <font color="#008000">{在 Delphi 2009 中, CompilerVersion = 20.0}</font>
<font color="#008284">{$IF CompilerVersion &gt;= 17.0}</font>
ShowMessage(<font color="#0000ff">'这是 Delphi 2005 或以上的版本'</font>);
<font color="#008284">{$IFEND}</font>
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">5. 使用 $IFOPT 判断编译开关:</span> <hr>
Delphi 挺好玩, 26个字母分别安排成不同的开关指令(用 Ctrl+o+o 查看, 当然开关指令不止这些);<br>
$IFOPT 可以判断这些指令是否打开.<br>
这个指令不是很常用, 我看了一下 2009 的 VCL 源码, 总共才用了 6 次. <hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
<font color="#008284">{$IFOPT B+}</font>
ShowMessage(<font color="#0000ff">'指令 B 已打开'</font>);
<font color="#008284">{$ELSE}</font>
ShowMessage(<font color="#0000ff">'指令 B 已关闭'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#008284">{$B+}</font>
<font color="#008284">{$IFOPT B+}</font>
ShowMessage(<font color="#0000ff">'Ok!'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#000080"><strong>end</strong></font>;</pre>
</pre> <a href="http://hi.baidu.com/hack0573/blog/item/c17bf22321352e4eac34dec4.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/delphi%D4%B0%B5%D8">delphi园地</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/c17bf22321352e4eac34dec4.html#comment">查看评论</a>]]></description>
        <pubDate>2009-11-04  11:50</pubDate>
        <category><![CDATA[delphi园地]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/c17bf22321352e4eac34dec4.html</guid>
</item>

<item>
        <title><![CDATA[Delphi 的编译指令(1): $DEFINE、$UNDEF、$IFDEF、$ELSE、$ENDIF]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/7192d235c91d0d81a71e12fb.html]]></link>
        <description><![CDATA[
		
		一个程序从无到有的过程是这样的: 编辑代码 -&gt; 预处理 -&gt; 编译(成dcu等) -&gt; 链接(为exe等).<br>
<br>
什么是预处理? <br>
譬如 VCL 中有很多代码是兼容 Linux 的, 在 Windows 下就需要在编译之前预处理掉那些 for Linux 的代码. <hr>
<br>
<span class="yy">1、判断操作系统:</span> <hr>
其中的 &quot;MSWINDOWS&quot; 和 &quot;LINUX&quot; 就是 Delphi 预定义的 &quot;条件标识符&quot;. <hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
<font color="#008284">{$IFDEF MSWINDOWS}</font>
ShowMessage(<font color="#0000ff">'Windows'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#008284">{$IFDEF LINUX}</font>
ShowMessage(<font color="#0000ff">'Linux'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">2、自定义条件标识符(DEFINE):</span> <hr>
下面例子中自定义了条件标识符: WanYi; 标识符和定义它的指令都不区分大小写, 但大家一般惯用大写.<br>
<hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
<font color="#008284">{$DEFINE WANYI}</font>
<font color="#008284">{$IFDEF WanYi}</font>
ShowMessage(<font color="#0000ff">'标识符 WanYi 已定义'</font>);
<font color="#008284">{$ELSE}</font>
ShowMessage(<font color="#0000ff">'标识符 WanYi 未定义'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">3、取消条件标识符的定义(UNDEF):</span> <hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
<font color="#008284">{$DEFINE WANYI}</font>
<font color="#008284">{$IFDEF WANYI}</font>
ShowMessage(<font color="#0000ff">'确认标识符 WanYi 是否定义'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#008284">{$UNDEF WANYI}</font>
<font color="#008284">{$IFDEF WANYI}</font>
ShowMessage(<font color="#0000ff">'再次确认标识符 WanYi 是否定义'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">4、取消定义的简单办法:</span> <hr>
在 {$...} 的 $ 前面随便加点什么, 让它变成 &quot;注释&quot;, 譬如: {.$}<br>
<hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
<font color="#008000">{.$DEFINE WANYI}</font>
<font color="#008284">{$IFDEF WANYI}</font>
ShowMessage(<font color="#0000ff">'确认标识符 WanYi 是否定义'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#008000">{.$UNDEF WANYI}</font>
<font color="#008284">{$IFDEF WANYI}</font>
ShowMessage(<font color="#0000ff">'再次确认标识符 WanYi 是否定义'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">5、调试编译指令时特别要注意的:</span> <hr>
Delphi 有个常识: 如果单元代码没有改变, 相应的 dcu 不会重新生成!<br>
<br>
因此, 为了有准确的调试结果, 执行前先用 Shift+F9 强制编译当前工程, 然后再 Run;<br>
强制编译所有相关单元也可以, 方法: Project -&gt; Build all project.<br>
<br>
当然修改下代码也很方便, 譬如在代码中打个空格再退回来. <hr>
<br>
<span class="yy">6、测试预定义的 Debug 和 Release:</span> <hr>
当我们当新建一个工程, Delphi 默认的是调试(Debug)状态, 当我们发布软件时应该切换到发布(Release)状态.<br>
两种状态下编译指令是有区别的, 在 Release 状态下发布的 dcu 或 exe 会更小、更优化.<br>
<br>
Debug 和 Release 的切换方法:<br>
进入 Project Manager -&gt; Build Configurations, 在 Debug 或 Release 上双击, 或从右键 Activate.<br>
<br>
下面的代码可以检测到这种改变, 不过要注意上面提到的 Shift+F9 或 Project -&gt; Build all project. <hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
<font color="#008284">{$IFDEF DEBUG}</font>
ShowMessage(<font color="#0000ff">'调试模式'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#008284">{$IFDEF RELEASE}</font>
ShowMessage(<font color="#0000ff">'发布模式'</font>);
<font color="#008284">{$ENDIF}</font>
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">7、编译指令写在哪?:</span> <hr>
编译指令可以写在代码页的任何地方, 不过在代码的不同区域有时也会不同;<br>
<br>
譬如: {$APPTYPE GUI} 和 {$APPTYPE CONSOLE} 就只能写在工程文件里才有效.<br>
<br>
{$APPTYPE GUI} 和 {$APPTYPE CONSOLE} 分别表示窗口工程和控制台工程.<br>
其中 {$APPTYPE GUI} 是默认的, 所以很少见到它.<br>
<br>
它甚至可以嵌入到代码行当中, 譬如 ActnColorMaps 单元就有这么一句: <hr>
<pre class="Delphi"><pre><font color="#000080"><strong>begin</strong></font>
SystemParametersInfo(SPI_GETFLATMENU, <font color="#0000ff">0</font>, <font color="#008284">{$IFNDEF CLR}@{$ENDIF}</font>FlatMenus, <font color="#0000ff">0</font>);
<font color="#000080"><strong>end</strong></font>;
<hr></pre>
</pre>
<br>
<span class="yy">8、条件标识符的有效范围:</span> <hr>
Delphi 预定义的条件标识符都是全局的, 我们用 {$DEFINE ...} 自定义的标识符都是局部的.<br>
<br>
如何自定义全局的标识符呢?<br>
Project -&gt; Options... -&gt; 选定 Delphi Compiler -&gt; 点击 Conditional defines 右边小按钮 -&gt; 添加.<br>
<br>
不过这和系统预定义的还是有区别, 咱们自定义的只能用于当前文件.<br>
<br>
如何定义每个文件都可以使用的标识符呢?<br>
从 Project -&gt; Options... 定义后, 马上选择左下角的 Default.<br>
<br>
这和系统预定义的还是有区别, 因为这只能左右以后的文件, 管不着以前存在的文件.<br>
如何...没办法了.<br>
<br>
其他编译指令, 譬如在 Debug 或 Release 中的设置也都是这样; 也就是说: 每个文件都有相对独立的编译设置.<br>
<br>
看到 Project -&gt; Options... 马上明白了编译指令的设置方法有两种:<br>
1、使用 {$...} 在代码中嵌入;<br>
2、从 Project -&gt; Options... 设置.<br>
<br>
但在代码中嵌入有时是不可替代的, 譬如现在讨论的条件编译. <hr>
<br>
<span class="yy">9、编译指令有多少?:</span> <hr>
现在谈到的还只是条件编译, 实际应用最多的是开关编译; 在任一代码页执行快捷键 <strong>Ctrl+O+O</strong> , 然后看看最上面...<br>
<br>
下面列出了这些默认设置: <hr>
<pre class="Delphi"><pre><font color="#008284">{$A8,B-,C+,D+,E-,F-,G+,H+,I+,J-,K-,L+,M-,N-,O+,P+,Q-,R-,S-,T-,U-,V+,W-,X+,Y+,Z1}</font>
<font color="#008284">{$MINSTACKSIZE $00004000}</font>
<font color="#008284">{$MAXSTACKSIZE $00100000}</font>
<font color="#008284">{$IMAGEBASE $00400000}</font>
<font color="#008284">{$APPTYPE GUI}</font>
<font color="#008284">{$WARN SYMBOL_DEPRECATED ON}</font>
<font color="#008284">{$WARN SYMBOL_LIBRARY ON}</font>
<font color="#008284">{$WARN SYMBOL_PLATFORM ON}</font>
<font color="#008284">{$WARN SYMBOL_EXPERIMENTAL ON}</font>
<font color="#008284">{$WARN UNIT_LIBRARY ON}</font>
<font color="#008284">{$WARN UNIT_PLATFORM ON}</font>
<font color="#008284">{$WARN UNIT_DEPRECATED ON}</font>
<font color="#008284">{$WARN UNIT_EXPERIMENTAL ON}</font>
<font color="#008284">{$WARN HRESULT_COMPAT ON}</font>
<font color="#008284">{$WARN HIDING_MEMBER ON}</font>
<font color="#008284">{$WARN HIDDEN_VIRTUAL ON}</font>
<font color="#008284">{$WARN GARBAGE ON}</font>
<font color="#008284">{$WARN BOUNDS_ERROR ON}</font>
<font color="#008284">{$WARN ZERO_NIL_COMPAT ON}</font>
<font color="#008284">{$WARN STRING_CONST_TRUNCED ON}</font>
<font color="#008284">{$WARN FOR_LOOP_VAR_VARPAR ON}</font>
<font color="#008284">{$WARN TYPED_CONST_VARPAR ON}</font>
<font color="#008284">{$WARN ASG_TO_TYPED_CONST ON}</font>
<font color="#008284">{$WARN CASE_LABEL_RANGE ON}</font>
<font color="#008284">{$WARN FOR_VARIABLE ON}</font>
<font color="#008284">{$WARN CONSTRUCTING_ABSTRACT ON}</font>
<font color="#008284">{$WARN COMPARISON_FALSE ON}</font>
<font color="#008284">{$WARN COMPARISON_TRUE ON}</font>
<font color="#008284">{$WARN COMPARING_SIGNED_UNSIGNED ON}</font>
<font color="#008284">{$WARN COMBINING_SIGNED_UNSIGNED ON}</font>
<font color="#008284">{$WARN UNSUPPORTED_CONSTRUCT ON}</font>
<font color="#008284">{$WARN FILE_OPEN ON}</font>
<font color="#008284">{$WARN FILE_OPEN_UNITSRC ON}</font>
<font color="#008284">{$WARN BAD_GLOBAL_SYMBOL ON}</font>
<font color="#008284">{$WARN DUPLICATE_CTOR_DTOR ON}</font>
<font color="#008284">{$WARN INVALID_DIRECTIVE ON}</font>
<font color="#008284">{$WARN PACKAGE_NO_LINK ON}</font>
<font color="#008284">{$WARN PACKAGED_THREADVAR ON}</font>
<font color="#008284">{$WARN IMPLICIT_IMPORT ON}</font>
<font color="#008284">{$WARN HPPEMIT_IGNORED ON}</font>
<font color="#008284">{$WARN NO_RETVAL ON}</font>
<font color="#008284">{$WARN USE_BEFORE_DEF ON}</font>
<font color="#008284">{$WARN FOR_LOOP_VAR_UNDEF ON}</font>
<font color="#008284">{$WARN UNIT_NAME_MISMATCH ON}</font>
<font color="#008284">{$WARN NO_CFG_FILE_FOUND ON}</font>
<font color="#008284">{$WARN IMPLICIT_VARIANTS ON}</font>
<font color="#008284">{$WARN UNICODE_TO_LOCALE ON}</font>
<font color="#008284">{$WARN LOCALE_TO_UNICODE ON}</font>
<font color="#008284">{$WARN IMAGEBASE_MULTIPLE ON}</font>
<font color="#008284">{$WARN SUSPICIOUS_TYPECAST ON}</font>
<font color="#008284">{$WARN PRIVATE_PROPACCESSOR ON}</font>
<font color="#008284">{$WARN UNSAFE_TYPE OFF}</font>
<font color="#008284">{$WARN UNSAFE_CODE OFF}</font>
<font color="#008284">{$WARN UNSAFE_CAST OFF}</font>
<font color="#008284">{$WARN OPTION_TRUNCATED ON}</font>
<font color="#008284">{$WARN WIDECHAR_REDUCED ON}</font>
<font color="#008284">{$WARN DUPLICATES_IGNORED ON}</font>
<font color="#008284">{$WARN UNIT_INIT_SEQ ON}</font>
<font color="#008284">{$WARN LOCAL_PINVOKE ON}</font>
<font color="#008284">{$WARN MESSAGE_DIRECTIVE ON}</font>
<font color="#008284">{$WARN TYPEINFO_IMPLICITLY_ADDED ON}</font>
<font color="#008284">{$WARN RLINK_WARNING ON}</font>
<font color="#008284">{$WARN IMPLICIT_STRING_CAST ON}</font>
<font color="#008284">{$WARN IMPLICIT_STRING_CAST_LOSS ON}</font>
<font color="#008284">{$WARN EXPLICIT_STRING_CAST OFF}</font>
<font color="#008284">{$WARN EXPLICIT_STRING_CAST_LOSS OFF}</font>
<font color="#008284">{$WARN CVT_WCHAR_TO_ACHAR OFF}</font>
<font color="#008284">{$WARN CVT_NARROWING_STRING_LOST OFF}</font>
<font color="#008284">{$WARN CVT_ACHAR_TO_WCHAR OFF}</font>
<font color="#008284">{$WARN CVT_WIDENING_STRING_LOST OFF}</font>
<font color="#008284">{$WARN XML_WHITESPACE_NOT_ALLOWED ON}</font>
<font color="#008284">{$WARN XML_UNKNOWN_ENTITY ON}</font>
<font color="#008284">{$WARN XML_INVALID_NAME_START ON}</font>
<font color="#008284">{$WARN XML_INVALID_NAME ON}</font>
<font color="#008284">{$WARN XML_EXPECTED_CHARACTER ON}</font>
<font color="#008284">{$WARN XML_CREF_NO_RESOLVE ON}</font>
<font color="#008284">{$WARN XML_NO_PARM ON}</font>
<font color="#008284">{$WARN XML_NO_MATCHING_PARM ON}</font></pre>
</pre> <a href="http://hi.baidu.com/hack0573/blog/item/7192d235c91d0d81a71e12fb.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/delphi%D4%B0%B5%D8">delphi园地</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/7192d235c91d0d81a71e12fb.html#comment">查看评论</a>]]></description>
        <pubDate>2009-11-04  11:49</pubDate>
        <category><![CDATA[delphi园地]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/7192d235c91d0d81a71e12fb.html</guid>
</item>

<item>
        <title><![CDATA[delphi 特殊窗体]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/18cee6350f6e9f1b91ef390f.html]]></link>
        <description><![CDATA[
		
		<p>var<br>
  Form1: TForm1;<br>
//圆角矩形<br>
procedure DrawRndRectRegion(hWnd: HWND; Rect: TRect);<br>
//椭圆1<br>
procedure DrawEllipticRegion(hWnd: HWND; Rect: TRect); overload;<br>
//椭圆2<br>
procedure DrawEllipticRegion(hWnd: HWND); overload;<br>
//多边形<br>
procedure DrawPolygonRegion(hWnd: HWND; Rect: TRect; NumPoints: Integer; IsStar: Boolean);<br>
//汉字<br>
procedure SetRgn_Chs(hWnd: HWND; ACanvas : TCanvas; AChs: string);<br>
implementation</p>
<p>{$R *.dfm}<br>
//圆角矩形<br>
procedure DrawRndRectRegion(hWnd: HWND; Rect: TRect);<br>
var<br>
 rgn : HRGN;<br>
begin<br>
 rgn := CreateRoundRectRgn(Rect.Left, Rect.Top, Rect.Right, Rect.Bottom, 30, 30);<br>
 SetWindowRgn(hWnd, rgn, True);<br>
end;</p>
<p>//椭圆1<br>
procedure DrawEllipticRegion(hWnd: HWND; Rect: TRect); overload;<br>
var<br>
 rgn : HRGN;<br>
begin<br>
 rgn := CreateEllipticRgn(Rect.Left, Rect.Top, Rect.Right, Rect.Bottom);<br>
 SetWindowRgn(hWnd, rgn, True);<br>
end;</p>
<p>//椭圆2<br>
procedure DrawEllipticRegion(hWnd: HWND); overload;<br>
var<br>
 rgn : HRGN;<br>
 myBrush, myDC : Longint ;<br>
begin<br>
 myBrush := CreateSolidBrush(clRed );<br>
 myDC := GetDC(hWnd);<br>
 BeginPath (myDC) ;<br>
 SelectObject(myDC, mybrush);<br>
 Ellipse(myDC, 100, 100, 510, 360);<br>
 DeleteObject(mybrush);<br>
 EndPath (myDC);<br>
 rgn := PathToRegion(mydc);<br>
 SetWindowRgn(hWnd, rgn, True);<br>
end;</p>
<p>//多边形<br>
procedure DrawPolygonRegion(hWnd: HWND; Rect: TRect; NumPoints: Integer; IsStar: Boolean);<br>
const<br>
 RadConvert = PI/180;<br>
 Degrees  = 360;<br>
 MaxLines  = 100;<br>
var<br>
 rgn : HRGN;<br>
 x, y, xCenter, yCenter, radius, pts, I : Integer;<br>
 angle, rotation: Extended;<br>
 arPts : Array[0..MaxLines] of TPoint;<br>
begin<br>
 xCenter := (Rect.Right - Rect.Left) div 2;<br>
 yCenter := (Rect.Bottom - Rect.Top) div 2;<br>
 if IsStar then begin<br>
  rotation := Degrees/(2*NumPoints);<br>
  pts := 2 * NumPoints;<br>
 end else begin<br>
  rotation := Degrees/NumPoints; //得到每个顶点的度数<br>
  pts := NumPoints ;<br>
 end;<br>
 radius := yCenter;<br>
 for I := 0 to pts - 1 do begin<br>
  if IsStar then<br>
&nbsp;&nbsp;  if (I mod 2) = 0 then<br>
&nbsp;&nbsp;&nbsp;  radius := Round(radius/2)<br>
&nbsp;&nbsp;  else<br>
&nbsp;&nbsp;&nbsp;  radius := yCenter;<br>
  angle := ((I * rotation) + 90) * RadConvert;<br>
  x := xCenter + Round(cos(angle) * radius);<br>
  y := yCenter - Round(sin(angle) * radius);<br>
  arPts[I].X := x;<br>
  arPts[I].Y := y;<br>
 end;<br>
 rgn := CreatePolygonRgn(arPts, pts, WINDING);<br>
 SetWindowRgn(hWnd, rgn, True);<br>
end;</p>
<p>//汉字<br>
procedure SetRgn_Chs(hWnd: HWND; ACanvas : TCanvas; AChs: string);<br>
var<br>
 rgn : HRGN;<br>
begin<br>
 BeginPath(ACanvas.Handle);<br>
 SetBkMode( ACanvas.Handle, TRANSPARENT );<br>
 ACanvas.Font.Name := '宋体';<br>
 ACanvas.Font.Size := 60;<br>
 ACanvas.TextOut( 0, 10, AChs);<br>
 EndPath(ACanvas.Handle);<br>
 rgn := PathToRegion(ACanvas.Handle);<br>
 SetWindowRgn(hWnd, rgn, True );<br>
end;</p> <a href="http://hi.baidu.com/hack0573/blog/item/18cee6350f6e9f1b91ef390f.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/delphi%D4%B0%B5%D8">delphi园地</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/18cee6350f6e9f1b91ef390f.html#comment">查看评论</a>]]></description>
        <pubDate>2009-10-27  09:02</pubDate>
        <category><![CDATA[delphi园地]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/18cee6350f6e9f1b91ef390f.html</guid>
</item>

<item>
        <title><![CDATA[NCRE考试 全国计算机等级考试科目安排]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/9fcab316323bd610972b43b0.html]]></link>
        <description><![CDATA[
		
		<table class="cbjg" style="background: #b1e7e8; word-break: break-all; word-wrap: break-word" cellspacing="1" cellpadding="0" width="100%" border="0">
    <tbody>
        <tr>
            <td align="center"><strong>级别</strong></td>
            <td align="center"><strong>科目/类别</strong></td>
            <td align="center"><strong>考试形式</strong></td>
        </tr>
        <tr>
            <td rowspan="3">一级</td>
            <td>一级MS Office</td>
            <td rowspan="3">上机</td>
        </tr>
        <tr>
            <td>一级WPS Office</td>
        </tr>
        <tr>
            <td>一级B</td>
        </tr>
        <tr>
            <td rowspan="7">二级</td>
            <td>C语言程序设计</td>
            <td rowspan="7">笔试＋上机</td>
        </tr>
        <tr>
            <td>C++语言程序设计</td>
        </tr>
        <tr>
            <td>Java语言程序设计</td>
        </tr>
        <tr>
            <td>Visual Basic语言程序设计</td>
        </tr>
        <tr>
            <td>Delphi语言程序设计</td>
        </tr>
        <tr>
            <td>Visual FoxPro数据库程序设计</td>
        </tr>
        <tr>
            <td>Access数据库程序设计</td>
        </tr>
        <tr>
            <td rowspan="4">三级</td>
            <td>PC技术</td>
            <td rowspan="4">笔试＋上机</td>
        </tr>
        <tr>
            <td>信息管理技术</td>
        </tr>
        <tr>
            <td>数据库技术</td>
        </tr>
        <tr>
            <td>网络技术</td>
        </tr>
        <tr>
            <td rowspan="3">四级</td>
            <td>网络工程师</td>
            <td rowspan="3">笔试</td>
        </tr>
        <tr>
            <td>数据库工程师</td>
        </tr>
        <tr>
            <td>软件测试工程师</td>
        </tr>
        <tr>
            <td>职业英语</td>
            <td>计算机职业英语（一级）</td>
            <td>笔试</td>
        </tr>
    </tbody>
</table>
<p><strong>注:</strong>（1）计算机职业英语（一级）在北京、天津、辽宁、安徽、湖北、湖南等省市开考。<br>
（2）四级三个科目考试仍只有笔试，上机考核要求在笔试中体现。<br>
<strong>软件变化</strong><br>
所有上机考试科目均在Windows XP环境下进行（考试机）。一级MS Office及一级B两个科目的上机考试使用MS Office2003替代MS Office2000；二级Access数据库程序设计科目的上机考试使用Access2003。</p> <a href="http://hi.baidu.com/hack0573/blog/item/9fcab316323bd610972b43b0.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/9fcab316323bd610972b43b0.html#comment">查看评论</a>]]></description>
        <pubDate>2009-04-21  14:48</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/9fcab316323bd610972b43b0.html</guid>
</item>

<item>
        <title><![CDATA[ms 一级考试]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/ed082523ddafd25a9922ed6a.html]]></link>
        <description><![CDATA[
		
		<p>1.外部存储器的是CD-ROM、硬盘、软盘，内部存储器:ROM、RAM、cache。<br>
2.用高级程序设计语言编写的程序称为源程序<br>
3.微型计算机的主机由CPU和内存储器构成。内存储器包括RAM和ROM。<br>
4.CAD计算机辅助设计,CAM计算机辅助制造,CIMS计算机集成制造系统,CAI计算机辅助教育<br>
5.1946-1958第一代电子管,1959-1964第二代晶体管,1965-1971第三代小规模集成电路,1971-今第四代大规模和超大规模集成电路<br>
6.一个计算机操作系统通常应具有：处理器（CPU）管理；存储管理；文件管理；输入/出管理和作业管理五大功能。<br>
7.　世界上第一台电子计算机ENIAC是1946年在美国诞生的，它主要采用电子管和继电器，它主要用于弹道计算。<br>
8.<br>
1B(字节 byte 大&quot;B&quot;表示)=8b(位bit)<br>
1KB(千字节)=1024B(字节)<br>
1MB(兆字节)=1024KB(千字节)<br>
9.磁盘上的磁道是一组记录密度不同的同心圆。一个磁道大约有零点几毫米的宽度，数据就存储在这些磁道上。<br>
10.DRAM是动态存储器，SRAM是静态存储器。</p>
<p>1.微型计算机最害怕的是灰尘和静电.<br>
2.计正常工作15-35度、低15可能引起磁盘读写错误、高35影响机内电子元件正常工作.<br>
3.在多媒体技术中，语言编码、文本编码、图像编码属于表示媒体.<br>
4.多媒体电脑的最重要特点是集成性和交互性.<br>
5.多媒体计算机系统一般由多媒体计算机硬件系统和多媒体计算机软件系统组成。<br>
6.磁盘容量=磁道数 X 扇区数 X 扇区内字节数 X 面数 X 磁盘片数.<br>
Cache的含义是高速缓冲存储器、设置高速缓冲存储器有利于提高计算机运行速度.<br>
7.直接受CPU控制的存储器 在CPU中集成了高速缓冲存储器（Cache)，这样CPU就可直接从Cache中存取数据了.<br>
8.Rom掉电后数据不会丢失<br>
9.常用打印机的两种类型：击打式打印机和激光打印机<br>
10.在安装打印机驱动程序时，一般选择的端口为LPT1端口。COM1、COM2端口连接的是鼠标和键盘。<br>
11.针式打印机术语中，24针是指打印头内有24根针.<br>
12.PROM的中文含义是可编程只读存储器.<br>
13.存储器中，内存储器存取速度最快，存取周期最短.<br>
14.运算器主要由一个加法器、若干个寄存器和一些控制线路组成.<br>
15.主频是指CPU的时钟频率（1秒钟内发出的脉冲数），以兆赫兹（MHZ）为单位.<br>
16.操作系统包括五大功能模块：处理器管理、作业管理、存储器管理、设备管理、文件管理.<br>
17.语言编译软件按分类来看属于系统软件.<br>
18. 一条指令必须包括操作码和地址码两部分，操作码指出该指令完成操作的类型，地址码指出参与操作的数据和操作结果存放的位置.<br>
19.汉字国标码规定了6763个汉字代码、其中一级常用字、模拟计算机、混合计算机三类<br>
世界上公认的第一台计算机是数字积分计算机ENIAC<br>
20.Windows2000操作系统是单用户多任务系统.</p>
<p>1.WORD内的格式化分为字符、段落和页面格式化3类.<br>
2.从系统的功能来看，计算机网络主要由资源子网和通信子网组成。</p> <a href="http://hi.baidu.com/hack0573/blog/item/ed082523ddafd25a9922ed6a.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/ed082523ddafd25a9922ed6a.html#comment">查看评论</a>]]></description>
        <pubDate>2009-03-27  21:23</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/ed082523ddafd25a9922ed6a.html</guid>
</item>

<item>
        <title><![CDATA[Delphi键盘按键伪码]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/c15fb4ca39c7d041f21fe7a5.html]]></link>
        <description><![CDATA[
		
		<table class="FCK__ShowTableBorders" cellspacing="0" cellpadding="0" width="770" border="0">
    <tbody>
        <tr>
            <td>
            <p> </p>
            <p style="text-indent: 2em">Delphi键盘按键伪码</p>
            </td>
        </tr>
    </tbody>
</table>
<p style="text-indent: 2em">用法：if key = chr(VK_RETURN) then...</p>
<p style="text-indent: 2em">常数名称 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  十六进制值 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  十进制值 &nbsp;&nbsp;&nbsp;  对应按键</p>
<p style="text-indent: 2em">VK_LBUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  01&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  鼠标的左键</p>
<p style="text-indent: 2em">VK_RBUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  02&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  鼠标的右键</p>
<p style="text-indent: 2em">VK-CANCEL&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  03&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Ctrl+Break(通常不需要处理)</p>
<p style="text-indent: 2em">VK_MBUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  04&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  鼠标的中键（三按键鼠标)</p>
<p style="text-indent: 2em">VK_BACK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  08&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  8 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Backspace键</p>
<p style="text-indent: 2em">VK_TAB&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  09&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  9 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Tab键</p>
<p style="text-indent: 2em">VK_CLEAR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  0C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Clear键（Num Lock关闭时的数字键盘5）</p>
<p style="text-indent: 2em">VK_RETURN &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  0D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Enter键</p>
<p style="text-indent: 2em">VK_SHIFT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Shift键</p>
<p style="text-indent: 2em">VK_CONTROL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  17 &nbsp;&nbsp;&nbsp;&nbsp;&nb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nbsp;&nbsp;  Ese键</p>
<p style="text-indent: 2em">VK_SPACE &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  20&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  32 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Spacebar键</p>
<p style="text-indent: 2em">VK_PRIOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  21&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  33 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Page Up键</p>
<p style="text-indent: 2em">VK_NEXT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  22&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  34 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Page Domw键</p>
<p style="text-indent: 2em">VK_END&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  23&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  35 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  End键</p>
<p style="text-indent: 2em">VK_HOME &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  24&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  36 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Home键</p>
<p style="text-indent: 2em">VK_LEFT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  25&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  37 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  LEFT ARROW 键(←)</p>
<p style="text-indent: 2em">VK_UP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  26&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  38 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  UP ARROW键(↑)</p>
<p style="text-indent: 2em">VK_RIGHT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  27&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  39 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  RIGHT ARROW键(→)</p>
<p style="text-indent: 2em">VK_DOWN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  28&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  40 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  DOWN ARROW键(↓)</p>
<p style="text-indent: 2em">VK_Select&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  29&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  41 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Select键</p>
<p style="text-indent: 2em">VK_PRINT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  2A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  42&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p style="text-indent: 2em">VK_EXECUTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  2B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  43&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  EXECUTE键</p>
<p style="text-indent: 2em">VK_SNAPSHOT &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  2C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  44&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Print Screen键（抓屏）</p>
<p style="text-indent: 2em">VK_Insert &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  2D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  45&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Ins键(Num Lock关闭时的数字键盘0)</p>
<p style="text-indent: 2em">VK_Delete &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  2E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  46&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Del键(Num Lock关闭时的数字键盘.)</p>
<p style="text-indent: 2em">VK_HELP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  62&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  98&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键2键</p>
<p style="text-indent: 2em">VK_NUMPAD3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  62&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  99&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键3键</p>
<p style="text-indent: 2em">VK_NUMPAD4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  64&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  100&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键4键</p>
<p style="text-indent: 2em">VK_NUMPAD5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  65&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  101&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键5键</p>
<p style="text-indent: 2em">VK_NUMPAD6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  66&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  102&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键6键</p>
<p style="text-indent: 2em">VK_NUMPAD7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  67&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  103&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键7键</p>
<p style="text-indent: 2em">VK_NUMPAD8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  68&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  104&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键8键</p>
<p style="text-indent: 2em">VK_NUMPAD9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  69&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  105&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键9键</p>
<p style="text-indent: 2em">VK_MULTIPLY&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  6A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  106&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键盘上的*键</p>
<p style="text-indent: 2em">VK_ADD &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  6B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  107&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键盘上的+键</p>
<p style="text-indent: 2em">VK_SEPARATOR&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  6C&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  108&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Separator键</p>
<p style="text-indent: 2em">VK_SUBTRACT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  6D&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  109&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键盘上的-键</p>
<p style="text-indent: 2em">VK_DECIMAL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  6E&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  110&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键盘上的.键</p>
<p style="text-indent: 2em">VK_DIVIDE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  6F&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  111&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  数字键盘上的/键</p>
<p style="text-indent: 2em">VK_F1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  70&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  112&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  F1键</p>
<p style="text-indent: 2em">VK_F2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  71&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  113&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  F2键</p>
<p style="text-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bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  79&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  121&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  F10键</p>
<p style="text-indent: 2em">VK_F11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  7A&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  122&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  F11键</p>
<p style="text-indent: 2em">VK_F12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  7B&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  123&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  F12键</p>
<p style="text-indent: 2em">VK_NUMLOCK&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  90&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  144&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Num Lock 键</p>
<p style="text-indent: 2em">VK_SCROLL &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  91&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  145&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Scroll Lock键</p>
<p style="text-indent: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p style="text-indent: 2em">上面没有提到的：（都在大键盘） &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</p>
<p style="text-indent: 2em">VK_LWIN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  91&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  左win键</p>
<p style="text-indent: 2em">VK_RWIN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  92&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  右win键</p>
<p style="text-indent: 2em">VK_APPS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  93&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  右Ctrl左边键，点击相当于点击鼠标右键，会弹出快捷菜单</p>
<p style="text-indent: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  186&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ;(分号)</p>
<p style="text-indent: 2em">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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;&nbsp;&nbsp;&nbsp;  222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  '键(引号)</p> <a href="http://hi.baidu.com/hack0573/blog/item/c15fb4ca39c7d041f21fe7a5.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/c15fb4ca39c7d041f21fe7a5.html#comment">查看评论</a>]]></description>
        <pubDate>2009-02-11  00:49</pubDate>
        <category><![CDATA[默认分类]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/c15fb4ca39c7d041f21fe7a5.html</guid>
</item>

<item>
        <title><![CDATA[Delphi数据类型]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/91cc57a8f65642b6ca130c5a.html]]></link>
        <description><![CDATA[
		
		<p>一、整数类型<br>
类型&nbsp;&nbsp;&nbsp;&nbsp;  所占字节数&nbsp;&nbsp;&nbsp;  取值范围<br>
byte&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  0-255<br>
word&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  0-65535<br>
shortint&nbsp;&nbsp;&nbsp;&nbsp;  1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  -128-127<br>
smallint&nbsp;&nbsp;&nbsp;&nbsp;  2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  -32768-32767<br>
integer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  -214748648-214748467<br>
longint&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  -214748648-214748467<br>
cordinal&nbsp;&nbsp;&nbsp;&nbsp;  4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  0-2147483647</p>
<p> </p>
<p>二、实数类型<br>
类型&nbsp;&nbsp;  所点字节数&nbsp;&nbsp;  取值范围<br>
Real&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ±2.9×10的负39次方到1.7×10的38次方<br>
Single&nbsp;&nbsp;&nbsp;&nbsp;  4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ±1.1×10的负45次方到1.1×10的38次方<br>
double&nbsp;&nbsp;&nbsp;&nbsp;  8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ±5.0×10的负324次方到1.7×10的308次方<br>
extended  10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  ±3.4×10的负4932次方到1.1×10的4932次方<br>
Comp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  -263-262</p>
<p><br>
三、字符类型<br>
字符类  所点字节数 容纳字符范围<br>
ansichar&nbsp;&nbsp;&nbsp;  1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  一个ASCii字符<br>
widechar&nbsp;&nbsp;&nbsp;  2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  一个单代码字符<br>
Char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  一个ASCII字符</p>
<p><br>
四、字符串类型<br>
类型&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  容纳类型 是否以空字节结束 长度范围<br>
shortstring&nbsp;&nbsp;  Char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  否&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  255<br>
ansistring&nbsp;&nbsp;&nbsp;  Char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  允许&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  约3GB<br>
string&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  Char&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  不限&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  255或3GB<br>
widestring  widechar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  允许&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  约1.5GB</p>
<p><br>
五、布尔类型<br>
类型&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  范围 所点字节数<br>
bool&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  字&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  2<br>
boolean  一字节&nbsp;&nbsp;&nbsp;  1<br>
bytebool  字节&nbsp;&nbsp;&nbsp;&nbsp;  1<br>
wordbool&nbsp;&nbsp;  字&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  2<br>
longbool 双字节&nbsp;&nbsp;&nbsp;  4</p> <a href="http://hi.baidu.com/hack0573/blog/item/91cc57a8f65642b6ca130c5a.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/delphi%D4%B0%B5%D8">delphi园地</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/91cc57a8f65642b6ca130c5a.html#comment">查看评论</a>]]></description>
        <pubDate>2009-02-06  15:24</pubDate>
        <category><![CDATA[delphi园地]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/91cc57a8f65642b6ca130c5a.html</guid>
</item>

<item>
        <title><![CDATA[Delphi 的字符及字符串 - Char、AnsiChar、WideChar、PChar、PAnsiChar、PWideChar]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/c556323d96b805e93d6d9780.html]]></link>
        <description><![CDATA[
		
		<p><span class="g"><font color="#008000">//最常用的 string<br>
</font></span><span class="k"><strong><font color="#000080">var</font></strong></span><br>
  str: <span class="k"><strong><font color="#000080">string</font></strong></span>;&nbsp;&nbsp;  <span class="g"><font color="#008000">{定义}</font></span><br>
<span class="k"><strong><font color="#000080">begin</font></strong></span><br>
  str := <span class="b"><font color="#0000ff">'万一'</font></span>; <span class="g"><font color="#008000">{赋值}</font></span><br>
  ShowMessage(IntToStr(Length(str))); <span class="g"><font color="#008000">{长度是: 4}</font></span><br>
<span class="k"><strong><font color="#000080">end</font></strong></span>;</p>
<hr>
<p><br>
<br>
<span class="g"><font color="#008000">//长字符串 AnsiString; 在当前版本(2007)中的默认状态下, String 就是 AnsiString<br>
</font></span><span class="k"><strong><font color="#000080">var</font></strong></span><br>
  str: AnsiString;<br>
<span class="k"><strong><font color="#000080">begin</font></strong></span><br>
  str := <span class="b"><font color="#0000ff">'万一'</font></span>;<br>
  ShowMessage(IntToStr(Length(str))); <span class="g"><font color="#008000">{长度是: 4}</font></span><br>
<span class="k"><strong><font color="#000080">end</font></strong></span>;</p>
<hr>
<p><br>
<br>
<span class="g"><font color="#008000">//宽字符串 WideString (效率不及 AnsiString)<br>
</font></span><span class="k"><strong><font color="#000080">var</font></strong></span><br>
  str: WideString;<br>
<span class="k"><strong><font color="#000080">begin</font></strong></span><br>
  str := <span class="b"><font color="#0000ff">'万一'</font></span>;<br>
  ShowMessage(IntToStr(Length(str))); <span class="g"><font color="#008000">{长度是: 2}</font></span><br>
<span class="k"><strong><font color="#000080">end</font></strong></span>;</p>
<hr>
<p><br>
<br>
<span class="g"><font color="#008000">//定长字符串<br>
</font></span><span class="k"><strong><font color="#000080">var</font></strong></span><br>
  str1: <span class="k"><strong><font color="#000080">String</font></strong></span>[<span class="b"><font color="#0000ff">6</font></span>]; <span class="g"><font color="#008000">{指定大小不能超过 255}</font></span><br>
  str2: <span class="k"><strong><font color="#000080">String</font></strong></span>[<span class="b"><font color="#0000ff">100</font></span>];<br>
<span class="k"><strong><font color="#000080">begin</font></strong></span><br>
  <span class="g"><font color="#008000">{少给了也会占那些内存}</font></span><br>
  str1 := <span class="b"><font color="#0000ff">'万一'</font></span>;<br>
  ShowMessage(str1);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="g"><font color="#008000">{万一}</font></span><br>
  ShowMessage(IntToStr(Length(str1))); <span class="g"><font color="#008000">{4; 这是字符串的长度}</font></span><br>
  ShowMessage(IntToStr(SizeOf(str1))); <span class="g"><font color="#008000">{7; 这是占内存大小}</font></span><br>
<br>
  <span class="g"><font color="#008000">{多给了会被截断}</font></span><br>
  str1 := <span class="b"><font color="#0000ff">'万一的 Delphi 博客'</font></span>;<br>
  ShowMessage(str1);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="g"><font color="#008000">{万一的}</font></span><br>
  ShowMessage(IntToStr(Length(str1))); <span class="g"><font color="#008000">{6; 这是实际保存的字符串长度}</font></span><br>
  ShowMessage(IntToStr(SizeOf(str1))); <span class="g"><font color="#008000">{7; 这是占内存大小}</font></span><br>
<br>
  <span class="g"><font color="#008000">{问题: 不是声明大小为 6 吗? 怎么 SizeOf 是 7 ? }</font></span><br>
  <span class="g"><font color="#008000">{因为定长字符串会多出一个首字节来记忆字符串的实际长度}</font></span><br>
<br>
  <span class="g"><font color="#008000">{举例说明, 如果给 str2 按如下赋值, 那它的首字节(str2[0])肯定储存着字符 'A'}</font></span><br>
  str2 := <span class="b"><font color="#0000ff">'iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii'</font></span>; <span class="g"><font color="#008000">{65个}</font></span><br>
  ShowMessage(str2[<span class="b"><font color="#0000ff">0</font></span>]);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="g"><font color="#008000">{A}</font></span><br>
  ShowMessage(IntToStr(Ord(str2[<span class="b"><font color="#0000ff">0</font></span>]))); <span class="g"><font color="#008000">{65; 这是 'A' 在 ASCII 序列中的序号, 用的就是它}</font></span><br>
<br>
  <span class="g"><font color="#008000">{那以后可以用 Ord(str2[0]) 来代替 Length 判断字符串的长度吗? }</font></span><br>
  <span class="g"><font color="#008000">{对定长字符串是可以的; 不但能读取, 还可以像 SetLength 一样设置}</font></span><br>
<span class="k"><strong><font color="#000080">end</font></strong></span>;</p>
<hr>
<p><br>
<br>
<span class="g"><font color="#008000">//ShortString; 它相当于 String[255]<br>
</font></span><span class="k"><strong><font color="#000080">var</font></strong></span><br>
  str: ShortString;<br>
<span class="k"><strong><font color="#000080">begin</font></strong></span><br>
  str := <span class="b"><font color="#0000ff">'万一的 Delphi 博客'</font></span>;<br>
  ShowMessage(str);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <span class="g"><font color="#008000">{万一的 Delphi 博客}</font></span><br>
  ShowMessage(IntToStr(SizeOf(str))); <span class="g"><font color="#008000">{256; 这是大小}</font></span><br>
  ShowMessage(IntToStr(Length(str))); <span class="g"><font color="#008000">{18 ; 这是实际长度}</font></span><br>
  ShowMessage(IntToStr(Ord(str[<span class="b"><font color="#0000ff">0</font></span>]))); <span class="g"><font color="#008000">{18 ; 这是从首字节中取出的长度}</font></span><br>
<span class="k"><strong><font color="#000080">end</font></strong></span>;</p>
<pre><span class="g"><font color="#008000">//单字符 Char、AnsiChar (在目前版本(2007)中, 它们是一回事, 只有 1 字节大小)
</font></span><span class="k"><strong><font color="#000080">var</font></strong></span>
  c: Char; <span class="g"><font color="#008000">{Char 类型的取值范围是: #0..#255, 用十六进制表示是: #$0..#$FF}</font></span>
<span class="k"><strong><font color="#000080">begin</font></strong></span>
  <span class="g"><font color="#008000">{用十进制方式赋值:}</font></span>
  c := #<span class="b"><font color="#0000ff">65</font></span>;
  ShowMessage(c); <span class="g"><font color="#008000">{A}</font></span>

  <span class="g"><font color="#008000">{用十六进制方式赋值:}</font></span>
  c := #$<span class="b"><font color="#0000ff">41</font></span>;
  ShowMessage(c); <span class="g"><font color="#008000">{A}</font></span>

  <span class="g"><font color="#008000">{用 Chr 函数代替 # 符号}</font></span>
  c := Chr(<span class="b"><font color="#0000ff">65</font></span>);
  ShowMessage(c); <span class="g"><font color="#008000">{A}</font></span>
  c := Chr($<span class="b"><font color="#0000ff">41</font></span>);
  ShowMessage(c); <span class="g"><font color="#008000">{A}</font></span>

  <span class="g"><font color="#008000">{Char 长度当然会是 1}</font></span>
  ShowMessage(IntToStr(Length(c))); <span class="g"><font color="#008000">{1}</font></span>

  <span class="g"><font color="#008000">{Char、AnsiChar 允许这样方便地赋值(也就是和 1 字节长度的字符串是兼容的):}</font></span>
  c := <span class="b"><font color="#0000ff">'B'</font></span>;
  ShowMessage(c); <span class="g"><font color="#008000">{B}</font></span>
<span class="k"><strong><font color="#000080">end</font></strong></span>;
<hr>

<span class="g"><font color="#008000">//UniCode 字符 WideChar; 和 AnsiChar 不同, WideChar 是占 2 字节大小.
</font></span><span class="k"><strong><font color="#000080">var</font></strong></span>
  c: WideChar; <span class="g"><font color="#008000">{WideChar 的取值范围是: #0..#65535, 用十六进制表示是: #$0..#$FFFF}</font></span>
<span class="k"><strong><font color="#000080">begin</font></strong></span>
  <span class="g"><font color="#008000">{WideChar 兼容了 AnsiChar 的 #0..#255; 但占用了 2 字节大小}</font></span>
  c := #<span class="b"><font color="#0000ff">65</font></span>;
  ShowMessage(c); <span class="g"><font color="#008000">{A}</font></span>
  ShowMessage(IntToStr(Length(c))); <span class="g"><font color="#008000">{1; 这是字符长度}</font></span>
  ShowMessage(IntToStr(SizeOf(c))); <span class="g"><font color="#008000">{2; 但占用 2 个字节}</font></span>

  <span class="g"><font color="#008000">{用十六进制赋值}</font></span>
  c := #$4E07;
  ShowMessage(c); <span class="g"><font color="#008000">{万}</font></span>
  ShowMessage(IntToStr(Length(c))); <span class="g"><font color="#008000">{1; 这是字符长度}</font></span>
  ShowMessage(IntToStr(SizeOf(c))); <span class="g"><font color="#008000">{2; 但占用 2 个字节}</font></span>

  <span class="g"><font color="#008000">{用十进制赋值}</font></span>
  c := #<span class="b"><font color="#0000ff">19975</font></span>;
  ShowMessage(c); <span class="g"><font color="#008000">{万}</font></span>

  <span class="g"><font color="#008000">{如果不超出 #255 的范围是可以直接赋值的}</font></span>
  c := <span class="b"><font color="#0000ff">'B'</font></span>;
  ShowMessage(c); <span class="g"><font color="#008000">{万}</font></span>

  <span class="g"><font color="#008000">{这样不行}</font></span>
 <span class="g"><font color="#008000"> //c := '万'; {这是 Delphi 的支持问题, 估计 Delphi 2008 应该可以解决}
</font></span>
  <span class="g"><font color="#008000">{可以这样变通一下:}</font></span>
  c := WideString(<span class="b"><font color="#0000ff">'万'</font></span>)[<span class="b"><font color="#0000ff">1</font></span>];
  ShowMessage(c); <span class="g"><font color="#008000">{万}</font></span>

  <span class="g"><font color="#008000">{用 WideChar 的方式显示我的名字}</font></span>
  ShowMessage(#<span class="b"><font color="#0000ff">19975</font></span>#<span class="b"><font color="#0000ff">19968</font></span>);    <span class="g"><font color="#008000">{万一}</font></span>
  ShowMessage(#<span class="b"><font color="#0000ff">19975</font></span> + #<span class="b"><font color="#0000ff">19968</font></span>); <span class="g"><font color="#008000">{万一}</font></span>
  ShowMessage(#$4e07#$4e00);    <span class="g"><font color="#008000">{万一}</font></span>
<span class="k"><strong><font color="#000080">end</font></strong></span>;
<hr>

<span class="g"><font color="#008000">//字符指针 PChar、PAnsiChar; 在当前版本(2007)中它们没有区别.
</font></span><span class="k"><strong><font color="#000080">var</font></strong></span>
  p: PChar;
  str: <span class="k"><strong><font color="#000080">string</font></strong></span>;
<span class="k"><strong><font color="#000080">begin</font></strong></span>
  <span class="g"><font color="#008000">{可以给 PChar 直接赋予字符串常量}</font></span>
  p := <span class="b"><font color="#0000ff">'万一'</font></span>;
  ShowMessage(p);                   <span class="g"><font color="#008000">{万一}</font></span>
  ShowMessage(IntToStr(Length(p))); <span class="g"><font color="#008000">{4}</font></span>

  <span class="g"><font color="#008000">{给变量值需要转换}</font></span>
  str := <span class="b"><font color="#0000ff">'万一的 Delphi 博客'</font></span>;
  p := PChar(str); <span class="g"><font color="#008000">{转换}</font></span>
  ShowMessage(p);                   <span class="g"><font color="#008000">{万一的 Delphi 博客}</font></span>
  ShowMessage(IntToStr(Length(p))); <span class="g"><font color="#008000">{18}</font></span>
<span class="k"><strong><font color="#000080">end</font></strong></span>;
<hr>

<span class="g"><font color="#008000">//宽字符指针 PWideChar
</font></span><span class="k"><strong><font color="#000080">var</font></strong></span>
  p: PWideChar;
  str: WideString; <span class="g"><font color="#008000">{注意这里不是 String}</font></span>
<span class="k"><strong><font color="#000080">begin</font></strong></span>
  <span class="g"><font color="#008000">{可以给 PWideChar 直接赋予字符串常量}</font></span>
  p := <span class="b"><font color="#0000ff">'万一'</font></span>;
  ShowMessage(p);                   <span class="g"><font color="#008000">{万一}</font></span>
  ShowMessage(IntToStr(Length(p))); <span class="g"><font color="#008000">{2}</font></span>

  <span class="g"><font color="#008000">{给变量值需要转换}</font></span>
  str := <span class="b"><font color="#0000ff">'万一的 Delphi 博客'</font></span>;
  p := PWideChar(str); <span class="g"><font color="#008000">{转换}</font></span>
  ShowMessage(p);                   <span class="g"><font color="#008000">{万一的 Delphi 博客}</font></span>
  ShowMessage(IntToStr(Length(p))); <span class="g"><font color="#008000">{13}</font></span>
<span class="k"><strong><font color="#000080">end</font></strong></span>;
<hr></pre>
<p>唉~: 代码着色在这里又出现问题, 不过现在没心情修改了, 以后再说吧.</p>
<hr> <a href="http://hi.baidu.com/hack0573/blog/item/c556323d96b805e93d6d9780.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/delphi%D4%B0%B5%D8">delphi园地</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/c556323d96b805e93d6d9780.html#comment">查看评论</a>]]></description>
        <pubDate>2008-12-11  14:59</pubDate>
        <category><![CDATA[delphi园地]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/c556323d96b805e93d6d9780.html</guid>
</item>

<item>
        <title><![CDATA[將StringGrid中的數據導入到Excel表]]></title>
        <link><![CDATA[http://hi.baidu.com/hack0573/blog/item/489986ddf52dc1e876c63894.html]]></link>
        <description><![CDATA[
		
		 這個可是我自己的代碼.今天做的時候順便記下.雖然這些都是很初級的東西.最近懶的很,除了工作,也不愿意動腦筋學習.(反面人物,大家別攻擊我啊~~).
<p>&nbsp;&nbsp;  下面的是一個菜單事件,雖然可以寫成一個函數,但是,我懶得整理.相信看的人也應該都會的啊...是吧?</p>
<p>procedure TForm1.SaveToEx1Click(Sender: TObject);<br>
var<br>
&nbsp;&nbsp;  ExcelApp,xlSheet : Variant;<br>
&nbsp;&nbsp;  i,j: integer;<br>
&nbsp;&nbsp;  FileNM : string;<br>
begin<br>
&nbsp;&nbsp;  try<br>
&nbsp;&nbsp;&nbsp;&nbsp;  ExcelApp := CreateOleObject('Excel.Application');<br>
&nbsp;&nbsp;&nbsp;&nbsp;  xlsheet := CreateOleObject('Excel.Sheet');</p>
<p>&nbsp;&nbsp;  Except<br>
&nbsp;&nbsp;&nbsp;&nbsp;  ShowMessage('請檢查您的機器有沒有安裝Excel!');<br>
&nbsp;&nbsp;&nbsp;&nbsp;  ExcelApp.Quit;<br>
&nbsp;&nbsp;&nbsp;&nbsp;  ExcelApp := Unassigned;<br>
&nbsp;&nbsp;  end;</p>
<p>&nbsp;&nbsp;  try <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  xlSheet := ExcelApp.WorkBooks.Add;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;  for i := 1&nbsp;&nbsp;  to StringGrid1.ColCount do<br>
&nbsp;&nbsp;&nbsp;&nbsp;  begin<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  for j := 1 to StringGrid1.RowCount do<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  xlSheet.WorkSheets[1].Cells[j, i] := StringGrid1.Cells[i - 1,j - 1];<br>
&nbsp;&nbsp;&nbsp;&nbsp;  end;<br>
&nbsp;&nbsp;&nbsp;&nbsp;  if SaveDialog1.Execute then<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  FileNM := SaveDialog1.FileName;<br>
&nbsp;&nbsp;&nbsp;&nbsp;  xlSheet.SaveAs(FileNm);<br>
&nbsp;&nbsp;&nbsp;&nbsp;  ShowMessage('導出數據完成!');<br>
&nbsp;&nbsp;  finally<br>
&nbsp;&nbsp;&nbsp;&nbsp;  xlSheet.Close;<br>
&nbsp;&nbsp;&nbsp;&nbsp;  ExcelApp.Quit;<br>
&nbsp;&nbsp;&nbsp;&nbsp;  ExcelApp := UnAssigned;<br>
&nbsp;&nbsp;  end;<br>
end;</p>
<p><a href="http://hi.baidu.com/yueyun889/blog/item/0dd9848fc8dfcaf8503d9275.html">http://hi.baidu.com/yueyun889/blog/item/0dd9848fc8dfcaf8503d9275.html</a></p> <a href="http://hi.baidu.com/hack0573/blog/item/489986ddf52dc1e876c63894.html">阅读全文</a>
		
		<br/><b>类别：</b><a href="http://hi.baidu.com/hack0573/blog/category/delphi%D4%B0%B5%D8">delphi园地</a>&nbsp;<a href="http://hi.baidu.com/hack0573/blog/item/489986ddf52dc1e876c63894.html#comment">查看评论</a>]]></description>
        <pubDate>2008-12-06  13:26</pubDate>
        <category><![CDATA[delphi园地]]></category>
        <author><![CDATA[hack0573]]></author>
		<guid>http://hi.baidu.com/hack0573/blog/item/489986ddf52dc1e876c63894.html</guid>
</item>


</channel>
</rss>