07 2010 档案

TrueType 或是 OpenType 字体
摘要:(* This can be used for Streams OR files. Set AStream parameter to nil if passing a FileName. Usage: Scan a Stream: ScanIt('texttofind', False, MyMemoryStream); Scan a File: ScanIt('texttofind', False... 阅读全文

posted @ 2010-07-15 08:29 思想。生活。网络 阅读(601) 评论(0) 推荐(0)

如何使用自己的字体文件(不安装)?
摘要:begin AddFontResource(Pchar(ExtractFilePath(ParamStr(0))+'NAME DER SCHRIFFT')); //打开你的字体文件 SendMessage(HWND_BROADCAST,WM_FONTCHANGE,0,0); //通知系统更新字体消息 Application....//使用之 RemoveFontResource(pchar(E... 阅读全文

posted @ 2010-07-15 08:24 思想。生活。网络 阅读(473) 评论(0) 推荐(0)

一个数组指针的使用【二】
摘要:type ShopCat = record cid: Integer; parent_cid: Integer; name: string[30]; is_parent: boolean; end; PShopCat = ^ShopCat; TShopCat = Array of ShopCat; PTShopCat = ^TShopCat;procedure TForm1.Button... 阅读全文

posted @ 2010-07-10 19:38 思想。生活。网络 阅读(144) 评论(0) 推荐(0)

一个数组指针的使用【一】
摘要:type TArr = array[0..MaxListSize] of Char; PArr = ^TArr;var arr: PArr; i: Integer;begin arr := GetMemory(5); for i := 0 to 4 do arr[i] := Chr(65+i); ShowMessage(PChar(arr)); {ABCDE} arr := Rea... 阅读全文

posted @ 2010-07-10 19:05 思想。生活。网络 阅读(126) 评论(0) 推荐(0)

取代有规律的字符
摘要:function SplitStr(pSource: string; OldStr: string; SpliChar: Char): string;var s: string; strList: TStrings; i: Integer; iPos: Integer; sPos: string;begin Result := ''; strList := TStringList.C... 阅读全文

posted @ 2010-07-08 11:05 思想。生活。网络 阅读(146) 评论(0) 推荐(0)

分割有规律的字符的函数
摘要:function MyStr(ASource: string; Index: Integer): string; var st: TStrings; i: Integer; begin Result := ''; st := TStringList.Create; i := ExtractStrings([';'], [], PChar(ASource), st); if (i > 0)... 阅读全文

posted @ 2010-07-05 08:54 思想。生活。网络 阅读(117) 评论(0) 推荐(0)

【转】移除 Delphi2010 的反射机制,减少 EXE 的体积
摘要:将将以上代码放在工程文件 DPR 的 USER 前。重新 Build 你的工程。来自:http://www.zipplet.co.uk/index.php/content/articles_programming_delphi2010rtti 阅读全文

posted @ 2010-07-01 19:45 思想。生活。网络 阅读(284) 评论(0) 推荐(0)

导航