Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

DelphiÏÂʵÏÖ°üº¬Í¨Åä·ûµÄÎı¾²éÕÒ

±¾ÎÄ×îÔçÔÚ±à³ÌÂÛ̳ÉÏ·¢±í£¬ÎÄÕµØÖ·£ºhttp://programbbs.com/bbs/view12-21351-1.htm£¬Ïà¹ØÎļþ¿ÉÒÔÔÚÉÏÊöµØÖ·µÄÒ³ÃæÖÐÏÂÔØ¡£×ªÔØʱÇë×¢Ã÷³ö´¦¡£
Ò»¡¢Ç°ÑÔ
ͨÅä·û¾ÍÊÇÖ¸“*”ºÍ“?”Á½¸ö×Ö·û£¬“*”±íʾµ±Ç°Î»ÖÿÉÒÔûÓлòÕßÓжà¸öÈÎÒâ×Ö·û£»“?”±íʾµ±Ç°Î»ÖÃÓÐÒ»¸öÈÎÒâ×Ö·û¡£Í¨Åä·ûÆ¥ÅäÔÚÍøÉÏ×ÊÁÏÖж¼Óн²µ½£¬µ«Ö÷Ҫ˵µÄ¶¼ÊÇ×Ö·û´®Æ¥Åä¶ø²»ÊÇÎı¾²éÕÒ¡£ÎÒ½áºÏͨÅä·ûÆ¥ÅäµÄË㷨дÁËÒ»¸öÖ§³ÖͨÅä·ûµÄÎı¾²éÕÒº¯Êý¡£Õâ¸öº¯ÊýµÄÔ´´úÂë¿ÉÒÔÔÚ±¾Â¥Ä©Î²µÄѹËõ°üÖеõ½¡£ÏÖÔÚÏÈ˵һÏÂͨÅä·ûÆ¥ÅäµÄËã·¨¡£
¶þ¡¢Í¨Åä·ûÆ¥ÅäËã·¨
ÀûÓðüº¬Í¨Åä·ûµÄģʽ´®£¨ÒÔϼò³Æģʽ´®£©½øÐÐÎı¾²éÕÒ£¬Í¨³£»áÆ¥Åäµ½Ò»¸ö²»¶¨³¤¶ÈµÄÎı¾¡£ËùÒÔÆ¥ÅäÍê³Éºó²»µ«ÒªµÃµ½Æ¥ÅäÎı¾µÄ½áÊøλÖÃÒ²ÒªµÃµ½Æ¥ÅäÎı¾µÄ¿ªÊ¼Î»Öá£ÏÖÔÚÏÈÀ´¿´Ò»¸ö¼òµ¥µÄÎÊÌ⣺¼ÙÉèÓ㤶ÈΪPLenµÄģʽ´®P£¬ÒÔ¼°³¤¶ÈΪTLenµÄÎı¾T¡£Èç¹ûPÖв»°üº¬Í¨Åä·û£¬ÄÇôÓÃÏÂÃæÕâ¸ö¼òµ¥Ëã·¨¾Í¿ÉÒÔÍê³É²éÕÒ£º
function FindText1(P,T : PAnsiChar; PLen,TLen : Integer; var SelStart,SelEnd : Integer): Boolean;
var
    PCur,TCur : Integer;
begin
    result:=false;
    for TCur:=SelStart to TLen-PLen do
    begin
        for PCur:=0 to PLen-1 do
            if P[PCur]<>T[TCur+PCur] then break;
        if PCur>=PLen then
        begin
            SelStart:=TCur;
            SelEnd:=TCur+PLen;
            result:=true;
            break;
        end;
    end;
end;
ÒÔÉϺ¯Êý´ÓÎı¾TµÄSelStartλÖÿªÊ¼ÏòϲéÕÒģʽ´®P£¬·µ»ØÊÇ·ñÕÒµ½£¬Èç¹ûÕÒµ½ÉèÖÃSelStartºÍSelEndΪƥÅäÎı¾µÄ¿ªÊ¼Î»ÖúͽáÊøλÖá£Õâ¸öËã·¨ÊÇ×î¼òµ¥µÄÎı¾²éÕÒËã·¨£¬ËüÓÐÁ½²ãÑ­»·£¬Íâ²ãforÑ­»·ÓÃÒÔÈ·ÈϲéÕÒλÖò¢ÖðÒ»ºóÒÆ£¬


Ïà¹ØÎĵµ£º

delphiÖйØÓÚ×Ö·û´®Êý×éµÄÒ»¸öСBUG

¿´ÈçÏ´úÂ룺
var
   buffer:array [0..6] of char;
begin
    buffer:='delphi';
end;
±àÒëͨ¹ý
ÔÙ¿´ÈçÏ´úÂ룺
var
   buffer:array [1..7] of char;
begin
    buffer:='delphi';
end;
±àÒë´íÎó£º
Incompatible types: 'Array' and 'String'
Õæ²»ÖªµÀ ......

³£ÓõÄBCB & Delphi º¯Êý

³£ÓõÄBCB &amp; Delphi º¯Êý
¹Ø¼ü×Ö£ºBCB,delphi,º¯Êý
×÷ÕߣºÂ³Ð¡°à    ¸üУº2003-08-12    ä¯ÀÀ£º12686
·­ÒëµÄ²»ºÃ£¬Çë¼ûÁ¡£
·­Ò룺³С°à
Îļþ£º ActnList
CreateAction º¯Êý ´´½¨Ò»¸öÖ¸¶¨ÀàÐ͵ÄAction£¬ÏÔʾÔÚaction list editorÖС£
EnumRegisteredAction ¹ý³Ì ö¾ÙÒѾ­×¢²áµÄ ......

delphi ʹÓÃado ¶Áд vfp»òÕßdbase4µÄÊý¾Ý¿â


tableDB.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+ ExtractFilePath(dir) +';Extended Properties=dBase 5.0;Persist Security Info=False;';
       tableDB.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;Data Source='+ExtractFilePath(dir)+';Extended Pro ......

Delphi CRC32УÑé

ÍøÉÏDownµÄÒ»¸öµ¥Ôª.×Ô¼º¸ÄÁËÏÂ. unit utCRC32;
interface
uses
Windows,SysUtils,Classes;
const //Crc32±í
Crc32Tab: Array[0..$FF] of LongInt =
($00000000, $77073096, $ee0e612c, $990951ba, $076dc419, $706af48f,
$e963a535, $9e6495a3, $0edb8832, $79dcb8a4, $e0d5e91e, $97d2d988,
$0 ......

ÓÃDelphi±àÖÆ¿É×Ô¶¯Éý¼¶³ÌÐò

ÔÚ±àÖÆÁËÒ»¸öÓ¦ÓóÌÐòºóµÄά»¤½×¶Î£¬ÎÒÃÇ»áÃæÁÙ¸øÓ¦ÓóÌÐòÉý¼¶µÄ¹¤×÷.ÎÞÒÉ£¬ÊÖ¹¤Éý¼¶µÄ¹¤×÷ÊÇÊ®·Ö·±ËöµÄ£¬Äã¿ÉÄÜ»áÐèÒªµ½Óû§µÄ»úÆ÷ÉÏÈ¥¸üÐÂÎļþ.¿ÉÊÇ£¬Èç¹ûÄܱàÒ»¸ö×Ô¶¯Éý¼¶³ÌÐò£¬·ÅÔÚÍøÂçÉÏ£¬ÈÃÓû§ÏÂÔØ£¬Ö»ÐèÖ´ÐÐһϾÍÍê³ÉÉý¼¶¹¤×÷£¬²»ÊǺܷ½±ãÂð£¿Æäʵ£¬ÓÃDelphi¿ÉÒԺܷ½±ãµØ±àÖƳöÕâÑùÒ»¸öµÄ³ÌÐò.
ÒÔÏÂÊÇÎÒÃǵÄÀý×Ó£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ