DelphiÎļþ²Ù×÷
	
    
    
	 unit unitFileOP;
interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;
implementation
function GetSys32Dir:String;
var
  Sys32Dir: string;
  pSys32Dir: array[0..Max_Path] of char;
begin
  GetSystemDirectory(pSys32Dir,Max_Path);
  Sys32Dir := String(pSys32Dir) + chr(92);
  Result := Sys32Dir;
end;
procedure MyFileCopy(const fromFile, ToFile: string);
var
  fromF, ToF: file;
  NumRead, NumWritten: integer;
  Buf: array[1..2048] of Char;
begin
  AssignFile(fromF, fromFile);
  Reset(fromF, 1);
  AssignFile(ToF, ToFile);
  Rewrite(ToF, 1);
  repeat
    BlockRead(fromF, Buf, SizeOf(Buf), NumRead);
    BlockWrite(ToF, Buf, NumRead, NumWritten);
  until (NumRead = 0) or (NumWritten <> NumRead);
  CloseFile(fromF);
  CloseFile(ToF);
end;
function GetExeFileVersion(fn: string; var ma, mi, r, b: integer): boolean;
var
  buf, p: pChar;
  sver: ^VS_FIXEDFILEINFO;
  i: LongWord;
begin
  i := GetFileVersionInfoSize(pchar(fn), i);
  new(sver);
  p := pchar(sver);
  GetMem(buf, i);
  ZeroMemory(buf, i);
  result := false;
  if GetFileVersionInfo(pchar(fn), 0, 4096, pointer(buf)) then
    if VerQueryValue(buf, '\', pointer(sver), i) then
    begin
      ma := sVer^.dwFileVersionMS shr 16;
      mi := sver^.dwFileVersionMS and $0000FFFF;
      r := sver^.dwFileVersionLS shr 16;
      b := sver^.dwFileVersionLS and $0000FFFF;
      result := true;
    end;
  Dispose(p);
  FreeMem(buf);
end;
function GetVersionString(const pFileName: string): string;
var
  VerInfoSize: DWORD;
  VerInfo: Pointer;
  VerValueSize: DWORD;
  Dummy: DWORD;
  VerValue: PVSFixedFileInfo;
begin
  Result := '0';
  VerInfoSize := GetFileVersionInfoSize(PChar(pFileName), Dummy);
  if VerInfoSize = 0 then
    Exit;
  GetMem(VerInfo, VerInfoSize);
  GetFileVersionInfo(PChar(pFileName), 0, VerInfoSize, VerInfo);
  VerQueryValue(VerInfo, chr(92), Pointer(VerValue), VerValueSize);
    
     
	
	
    
    
	Ïà¹ØÎĵµ£º
        
    
    procedure TForm1.CheckBox1Click(Sender: TObject);
begin
  if CheckBox1.Checked then
    SetWindowPos(Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOSIZE or SWP_NOMOVE)
  else
    SetWindowPos(Handle, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE or SWP_NOMOVE);
end;//ʹÓÃSelf.FormStyle := fsStayOnTop;»áʹ½ç ......
	
    
        
    
    Delphi formatµÄÓ÷¨ 
Ò»¡¢Formatº¯ÊýµÄÓ÷¨
FormatÊÇÒ»¸öºÜ³£Óã¬È´ÓÖËÆºõºÜ·³µÄ·½·¨£¬±¾ÈËÊÔͼ¶ÔÕâ¸ö·½·¨µÄ°ïÖú½øÐÐһЩ·Ò룬ÈÃËüÓÐÒ»¸öÍêÕûµÄ¸Åò£¬ÒÔ¹©´ó¼Ò²éѯ֮Ó㺠
Ê×ÏÈ¿´ËüµÄÉùÃ÷£º
function Format(const Format: string; const Args: array of const): string; overload;
ÊÂʵÉÏFormat·½·¨ÓÐÁ½¸öÖÖÐÎʽ£¬Á ......
	
    
        
    
    //²Î¿¼µØÖ·£ºhttp://www.wangchao.net.cn/bbsdetail_41190.html
Ò»¡¢Î¢ÈíRegExp
      1. ÏÂÔØ²¢°²×°×îаæµÄ"Microsoft(r) Windows(r) Script"
¡¡¡¡2. RegExp°üº¬ÔÚvbscript.dllÖÐËùÒÔÎÒÃDZØÐëÏÈ×¢²áregsvr32 vbscript.dll 
¡¡¡¡×¢(°²×°ÁËIe5ºóĬÈÏÒѾ°üº¬¸Ã¿Ø¼þ)
¡¡¡¡3.ÔÚDelph ......
	
    
        
    
    unit DvsLinkingClass;
interface
uses
   Windows, Messages, SysUtils, Classes, Controls, Forms, Dialogs;
type
PRecLinkNode = ^RecLinkNode;
  RecLinkNode = record
    NodeMsg: String;
    Counter: Integer;
    Previous: PRecLinkNode;
    Next: PRecLinkNode;
  end;
TLinkingClass = class
   ......