﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>IT博客-vivily-随笔分类-c＋＋builder技巧</title><link>http://www.cnitblog.com/vivily/category/26.html</link><description>开发软件，关注硬件</description><language>zh-cn</language><lastBuildDate>Wed, 12 Oct 2011 16:37:39 GMT</lastBuildDate><pubDate>Wed, 12 Oct 2011 16:37:39 GMT</pubDate><ttl>60</ttl><item><title>c++builder函数解析（下）</title><link>http://www.cnitblog.com/vivily/archive/2005/05/22/189.html</link><dc:creator>软硬兼施</dc:creator><author>软硬兼施</author><pubDate>Sun, 22 May 2005 04:50:00 GMT</pubDate><guid>http://www.cnitblog.com/vivily/archive/2005/05/22/189.html</guid><wfw:comment>http://www.cnitblog.com/vivily/comments/189.html</wfw:comment><comments>http://www.cnitblog.com/vivily/archive/2005/05/22/189.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/vivily/comments/commentRss/189.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/vivily/services/trackbacks/189.html</trackback:ping><description><![CDATA[<TABLE cellSpacing=0 cellPadding=0 width="99%">
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>RemoveDir</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>删除指定的目录,如果操作成功,返回真,否则返回假,函数原型如下:<BR>bool __fastcall RemoveDir(const AnsiString Dir);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>RenameFile</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>更改指定文件的名称,如果操作成功,则函数返回真,函数原型如下:<BR>bool __fastcall RenameFile(const AnsiString OldName, const AnsiString NewName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>SetCurrentDir</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>设置当前工作目录,如果操作成功,则返回真,函数原型如下:<BR>bool __fastcall SetCurrentDir(const AnsiString Dir);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrAlloc</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>为字符串分配指定字节的内存,并返回内存指针,函数原型如下:<BR>char * __fastcall StrAlloc(Cardinal Size);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrBufSize</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回*Str所指向内存的大小,函数原型如下:<BR>Cardinal __fastcall StrBufSize(const char * Str);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrCat</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>连接两个字符串,并返回目的字符串指针,函数原型如下:<BR>char * __fastcall StrCat(char * Dest, const char * Source);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrComp</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>两个字符串相到比较,返回比较的结果,函数原型如下:<BR>int __fastcall StrComp(const char * Str1, const char * Str2);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrCopy</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将源字符串拷贝到目的字符串中,函数原型如下:<BR>char * __fastcall StrCopy(char * Dest, const char * Source);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrECopy</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将源字符串拷贝到目的字符串中,并返回目的字符串结尾指针,函数原型如下:<BR>char * __fastcall StrECopy(char * Dest, const char * Source);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrEnd</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回字符串结尾指针,函数原型如下:<BR>char * __fastcall StrEnd(const char * Str);</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="99%">
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrIComp</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>两个字符串相互比较(不论大小写),返回比较的结果,函数原型如下:<BR>int __fastcall StrIComp(const char * Str1, const char * Str2);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrLCat</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将指定数目的源字符串连接到目的字符串,并返回目的字符串指针,函数原型如下:<BR>char * __fastcall StrLCat(char * Dest, const char * Source, Cardinal MaxLen);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrLComp</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>对两个字符串指定数目的字符进行比较操作,函数原型如下:<BR>int __fastcall StrLComp(const char * Str1, const char * Str2, Cardinal MaxLen);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrLCopy</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将源字符串指定数目的字符拷贝到目的字符串中,并返回目的字符串指针,函数原型如下:<BR>char * __fastcall StrLCopy(char * Dest, const char * Source, Cardinal MaxLen);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrLen</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回字符串的长度,函数原型如下:<BR>Cardinal __fastcall StrLen(const char * Str);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrLower</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将字符串转换为小写形式,函数原型如下:<BR>char * __fastcall StrLower(char * Str);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrMove</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>从源字符串向目的字符串拷贝指定数目的字符,函数原型如下:<BR>char * __fastcall StrMove(char * Dest, const char * Source, Cardinal Count);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrNew</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>在堆中为指定字符串分配空间,并将字符串拷贝到此空间中,函数原型如下:<BR>char * __fastcall StrNew(const char * Str);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrPas</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将指定的字符串转换为AnsiString类型字符串对象,函数原型如下:<BR>AnsiString __fastcall StrPas(const char * Str);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrPCopy</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将AnsiString类型的源字符串拷贝到目的字符串中,并返回目的字符串指针,函数原型如下:<BR>char * __fastcall StrPCopy(char * Dest, const AnsiString Source);</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="99%">
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrPLCopy</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将源字符串(AnsiString类型)指定数目的字符拷贝到目的字符串中,并返回目的字符串指针,函数原型如下:<BR>char * __fastcall StrPLCopy(char * Dest, const AnsiString Source, Cardinal MaxLen);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrPos</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>在Strl所指定的字符串中寻找Str2所指定的子字符串,并返回Str2在Str2中第一个子字符的指针,函数原型如下:<BR>char * __fastcall StrPos(const char * Str1, const char * Str2);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrRScan</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>在指定的字符串中寻找特定的字符,并返回字符串中最后一个特定字符的指针,函数原型如下:<BR>char * __fastcall StrRScan(const char * Str, char Chr);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrScan</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>在指定的字符串中寻找特定的字符,并返回字符串中第一个特定字符的指针,函数原型如下:<BR>char * __fastcall StrScan(const char * Str, char Chr);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrToDate</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将字符串对象转换为年月日对象,函数原型如下:<BR>System::TDateTime __fastcall StrToDate(const AnsiString S);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrToDateTime</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将字符串对象转换为年月日时间对象,函数原型如下:<BR>System::TDateTime __fastcall StrToDateTime(const AnsiString S);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrToFloat</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将AnsiString字符串转换为一个浮点数值,函数原型如下:<BR>Extended __fastcall StrToFloat(const AnsiString S);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrToInt</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将AnsiString字符串转换为整数值,如果不能进行转换,则产生EConvertError异常,函数原型如下:<BR>int __fastcall StrToInt(const AnsiString S);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrToIntDef</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将AnsiString字符串转换为一个数值,函数原型如下:<BR>int __fastcall StrToIntDef(const System::AnsiString S,int Default);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrToTime</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将字符串对象转换时间对象,函数原型如下:<BR>System::TDateTime __fastcall StrToTime(const AnsiString S);</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="99%">
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>StrUpper</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将字符串转换为大写形式,函数原型如下:<BR>char * __fastcall StrUpper(char * Str);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>SysFreeMem</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>释放所指定的内存块.函数原型如下:<BR>int __fastcall SysFreeMem(void * P);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>SysReallocMem</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>要求重新分配参数Size所指定的内存.函数原型如下:<BR>void * __fastcall SysReallocMem(void * P , int Size);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>SystemTimeToDateTime</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将操作系统时间转换为TDateTime对象,函数原型如下:<BR>System::TDateTime __fastcall SystemTimeToDateTime(const _SYSTEMTIME &amp;SystemTime);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>Time</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回TDateTime对象,包含当前的时间信息,函数原型如下:<BR>System::TDateTime __fastcall Time(void);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>TimeToStr</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将当前日期转换为字符串对象,函数原型如下:<BR>AnsiString __fastcall TimeToStr(System::TDateTime Time);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>UpperCase</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将指定的AnsiString字符串转换为大写形式,函数原型如下:<BR>AnsiString __fastcall UpperCase(const AnsiString S);</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE><img src ="http://www.cnitblog.com/vivily/aggbug/189.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/vivily/" target="_blank">软硬兼施</a> 2005-05-22 12:50 <a href="http://www.cnitblog.com/vivily/archive/2005/05/22/189.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>c++builder函数解析（上）</title><link>http://www.cnitblog.com/vivily/archive/2005/05/22/188.html</link><dc:creator>软硬兼施</dc:creator><author>软硬兼施</author><pubDate>Sun, 22 May 2005 04:48:00 GMT</pubDate><guid>http://www.cnitblog.com/vivily/archive/2005/05/22/188.html</guid><wfw:comment>http://www.cnitblog.com/vivily/comments/188.html</wfw:comment><comments>http://www.cnitblog.com/vivily/archive/2005/05/22/188.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/vivily/comments/commentRss/188.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/vivily/services/trackbacks/188.html</trackback:ping><description><![CDATA[<TABLE cellSpacing=0 cellPadding=0 width="99%">
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>AllocMem</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>在队中分配指定字节的内存块,并将分配的每一个字节初始化为 0.函数原型如下:<BR>void * __fastcall AllocMem(Cardinal Size);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>ChangeFileExt</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>更改指定文件的扩展名,函数原型如下:<BR>AnsiString __fastcall ChangeFileExt(const AnsiString FileName,const AnsiString Extension);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>CompareStr</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>比较两个AnsiString字符串,函数原型如下:<BR>int __fastcall CompareStr(const AnsiString S1, const AnsiString S2);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>CompareText</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>比较两个AnsiString字符串,函数原型如下:<BR>int __fastcall CompareText(const AnsiString S1, const AnsiString S2);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>CreateDir</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>创建新的目录,如果操作成功,返回真,否则返回假,函数原型如下:<BR>bool __fastcall CreateDir(const AnsiString Dir);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>Date</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回TDateTime对象,包含当前的年月日信息,函数原型如下:<BR>System::TDateTime __fastcall Date(void);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>DateTimetoStr</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将TDateTime对象转换为字符串对象,函数原型如下:<BR>AnsiString __fastcall DateTimeToStr(System::TDateTime DateTime);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>DatetimeToString</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将TDateTime对象转换为指定格式的字符串对象,函数原型如下:<BR>void __fastcall DateTimeToString(AnsiString &amp;Result, const AnsiString Format,System::TDateTime DateTime);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>DateTimeToSystemTime</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将TDateTime对象转换为操作系统时间,函数原型如下:<BR>void __fastcall DateTimeToSystemTime(System::TDateTime DateTime, _SYSTEMTIME &amp;SystemTime);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>DateToStr</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将TDateTime对象(包含当前年月日信息)转换为字符串对象,函数原型如下:<BR>AnsiString __fastcall DateToStr(System::TDateTime Date);</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="99%">
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>DeleteFile</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>在计算机磁盘中删除指定的文件,如果操作成功,则函数返回真,函数原型如下:<BR>bool __fastcall DeleteFile(const AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>DiskFree</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定磁盘的剩余空间,如果操作成功,返回剩余磁盘空间,如果操作失败,则返回-1,函数原型如下:<BR>int __fastcall DiskFree(Byte Drive);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>DiskSize</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定磁盘的空间,如果操作成功,返回磁盘空间,如果操作失败,则返回-1,函数原型如下:<BR>int __fastcall DiskSize(Byte Drive);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>ExtractFileDir</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定文件的工作目录,函数原型如下:<BR>AnsiString __fastcall ExtractFileDir(const AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>ExtractFileDrive</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定文件的驱动器,函数原型如下:<BR>AnsiString __fastcall ExtractFileDrive(const AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>ExtractFileExt</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定文件的扩展名,函数原型如下:<BR>AnsiString __fastcall ExtractFileExt(const AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>ExtractFileName</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定文件的文件名及扩展名,函数原型如下:<BR>AnsiString __fastcall ExtractFileName(const AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>ExtractFilePath</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定文件的工作路径,函数原型如下:<BR>AnsiString __fastcall ExtractFilePath(const AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileAge</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定文件的时间标签,如果操作失败,则返回-1,函数原型如下:<BR>int __fastcall FileAge(const System::AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileClose</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>关闭指定的文件,函数原型如下:<BR>void __fastcall FileClose(int Handle);</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="99%">
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileCreate</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>以指定的文件名称创建一个新的文件,如果返回为正数,表示操作成功,返回值为文件句柄,如果返回值为-1,表示操作失败.函数原型如下:<BR>int __fastcall FileCreate(const System ::AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileExists</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>用于测试指定的文件是否存在,如果存在返回真,否则返回假,函数原型如下:<BR>bool __fastcall FileExists(const System::AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileGetAttr</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定文件的属性,如果操作失败,则函数返回-1,函数原型如下; int __fastcall FileGetAttr(const System::AnsiString FileName);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileGetDate</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回指定文件的DOS时间标签,如果操作失败,则近回-1,函数原型如下:<BR>int __fastcall FileGetDate(int Handle);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileOpen</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>打开指定的文件,如果返回为正数,表示操作成功,返回值为文件句柄:如果返回值为-1,表示操作失败,函数原型如下:<BR>int __fastcall FileOpen(const System::AnsiString FileName,int Mode);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileRead</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>从文件中读取指定字节的数据到缓冲区中,函数返回实际读取的字节数,函数原型如下; int __fastcall FileRead(int Handle,void *Buffer,int Count);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileSeek</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>调整文件指针到新的位置,如果操作成功,则返回新的文件位置,如果操作失败,则函数返回-1,函数原型如下:<BR>int __fastcall FileSeek(int Handle,int Offset,int Origin);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileSetAttr</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>更改指定文件的属性参数,如果操作成功,则返回0,函数原型如下; int __fastcall FileSetAttr(const System::AnsiString FileName,int Attr);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileSetDate</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>更改指定文件的DOS时间标签,如果操作成功,返回0,否则返回错误代码,函数原型如下:<BR>int __fastcall FileSetDate(int Handle,int Age);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FileWrite</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将缓冲区的数据写入到指定的文件的当前位置中去如果操作成功,函数返回实际写入的字节数,如果返回为-1,则表示操作产生错误,函数原型如下:<BR>int __fastcall FileWrite(int Handle,const void *Buffer,int Count);</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="99%">
<TBODY>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FindClose</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>释放FindFirst操作所申请的内存资源,函数原型如下:<BR>void __fastcall FindClose(TSearchRec &amp;F);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FindFirst</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>在指定的文件目录内,搜寻符合特定属性参数的文件,如果成功地查找到符合条件的文件,则函数返回0,否则函数返回一个错误代码,函数原型如下:<BR>int __fastcall FindFirst(const System::AnsiString Path,int Attr,TSearchRec &amp;F);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FindNext</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>继续搜寻FindFirst所指定属性参数的文件,如果成功地查找到符合条件的文件,则函数返回0,否则函数返回一个错误代码,函数原型如下:<BR>int __fastcall FindNext(TSearchRec &amp;F);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FloatToStr</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将浮点数转换为AnsiString字符串,函数原型如下:<BR>AnsiString __fastcall FloatToStr(Extended Value);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>FloatToStrF</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将浮点数转换为指定格式的AnsiString字符串,函数原型如下:<BR>AnsiString __fastcall FloatToStrF(Extended Value, TFloatFormat Format,int Precision, int Digits);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>GetCurrentDir</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回当前工作目录,函数原型如下:<BR>AnsiString __fastcall GetCurrentDir();</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>IntToHex</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将整数转换为十六进制字符串,函数原型如下:<BR>AnsiString __fastcall IntToHex(int Value, int Digits);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>IntToStr</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将整数转换为AnsiString字符串,函数原型如下:<BR>AnsiString __fastcall IntToStr(int Value);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>LowerCase</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>将指定的AnsiString字符串转换为小写形式,函数原型如下:<BR>AnsiString __fastcall LowerCase(const AnsiString S);</TD></TR></TBODY></TABLE><BR></DIV></TD></TR>
<TR>
<TD vAlign=top>
<DIV align=right>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#999999 cellPadding=2 width="99%" bgColor=#e3e3e3 borderColorLight=#999999 border=1>
<TBODY>
<TR>
<TD align=middle width=61 height=17>函数名称</TD>
<TD align=left>Now</TD></TR>
<TR>
<TD align=middle width=60 height=21>函数说明</TD>
<TD>返回TDateTime对象,获取当前的日期和时间信息,函数原型如下:<BR>System::TDateTime __fastcall Now(void);</TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE><img src ="http://www.cnitblog.com/vivily/aggbug/188.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/vivily/" target="_blank">软硬兼施</a> 2005-05-22 12:48 <a href="http://www.cnitblog.com/vivily/archive/2005/05/22/188.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>