delphiÍç¼²ÊÕ¼¯
delphiÍç¼²ÊÕ¼¯
delphi·¢²¼ÒѾʮ¶àÄêÁË£¬ºÜ¶àbug һֱδµÃµ½ÐÞÕý£¬¿´¿´´ó¼Ò¶¼Óöµ½Ê²Ã´Íç¼²
1. delphi7¿ªÊ¼¼Ì³ÐµÄdbgrid²»ÄÜɾ³ýмӵÄÁУ¬Ö±µ½delphi2010 »¹´æÔÚ (±ØÈ»)
2. delphi5¿ªÊ¼Óöµ½ Ôö¼ÓеÄʼþÇý¶¯³ÌÐòºó°Ñ ×îºó µÄ .end ¸ãÂÒÌ×,Ö±µ½delphi2010 »¹´æÔÚ (¾³£)
¹ÛÍûÒ»ÏÂ
ºÇºÇ£¬ÍæµÄÉÙ¡£»¹²»ÖªµÀÓÐbug¡£
£¨Ò²ÐíÊÇ5ÍæµÄ·½ÏòÓÚbug²Á¼ç¶ø¹ýÁ˰ɣ©
Delphi(Pascal) code:
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, IniFiles;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
FCacheConfigList: THashedStringlist;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
var
t: Cardinal;
i: Integer;
begin
t := GetTickCount;
for i := 0 to 10000 do
FCacheConfigList.Add(IntToStr(i + 1));
FCacheConfigList.Sort;{ÎÊÌâÔÚÕâÀµÚÒ»´ÎÅÅÐòºÜ¿ì£¬Èç¹ûÔÙµã»÷Ò»´ÎButton1¾ÍÅÅÐòºÜºÄʱ£¬µÈ´ý´óÔ¼5·ÖÖÓÒÔºóÅÅÐòÍê³É£¬ÔÙµã»÷button1¾ÍûÎÊÌâÁË}
ShowMessage(IntToStr(GetTickCount - t));
ShowMessage(IntToStr(FCacheConfigList.Count));
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
FCacheConfigList := THashedStr
Ïà¹ØÎÊ´ð£º
Ò»°ã¶¼ÊÇÔõô½Ó»îµÄ£¿
ÊÕÈëÔõôÑù
sohu£¿soho£¿
sohu ¿ÉÄÜÊÇsmall office house unit
С°ì¹«ÊÒ£¬°Ñ¼Ò±ä³Éµ¥Î»¡£
È¥Íþ¿ÍÍø°¡,ºÜ¶à¸öÄØ,»¹ÓÐÍâ°üµÄÍøÕ¾
ѧϰѧϰ¡£
ÏÖÔÚDelphi×ö¶«Î÷²»ÐÐÁË,´¦ÓÚÌÔÌ×´ ......
hongqi162¡¢windindance
´Ë2È˳¤ÆÚ²»ÔÚÏߣ¬ÌرðÊÇwindindance
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
hongqi162»¹ÊǾ³£ÉÏÀ´×ª×ªµÄ
ÒýÓÃ
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
ÆäʵҲ²»ÊÇʲôÄÜÁ¦µÄÔÒò£¬Ö÷Òª¿ÉÄÜÊÇʱ¼äÎÊÌâ°É
¹¤×÷µÄ»¹ÒªÉÏ°à£¬Ñ§Ï ......
xml := CreateOleObject('Microsoft.XMLHTTP');
xml.Open('GET','http://www.google.com', False);
xml.Send;
xml.responseText;
ʹÓÃxml.responseText¿ÉÒÔ»ñÈ¡ÍøÒ³Ô´Âë,µ«ÊÇÔÙ´Î ......
Option Explicit
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' Copyright ?1996-2009 VBnet, Randy Birch, All Rights Reserved.
' Some pages may also contain other copyrights by th ......
ÎÒ×ÔѧµÄD7£¬·¢ÏֺܻìÂÒ£¬ÌرðÊÇ·ÃÎÊACCESSµÄ·½·¨Óкö࣬ÀýÈç¿ÉÒÔÓÃadoconnection¿Ø¼þÁ¬½Ó¿â£¬»¹¿ÉÒÔÓÃ×Ö·û´®£¬Ôöɾ¸ÄµÄ·½Ê½Ò²ºÃ¼¸ÖÖ£¬¶¼²»ÖªµÀ¸ÃÓÃÄÄÖÖ·½·¨ÁË¡£
ÄÄλÄܸøÎÒµãÀý×Ó£º
ÐèÒªµÄÊÇÏÔʾ¼Ç¼¡¢Ìí¼Ó¼Ç¼¡ ......