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
Ïà¹ØÎÊ´ð£º
·µ»ØµÄÄÚÈÝÊÇÈçÏ´úÂë,ÔõôÄÜÇþµÀ2b?
<p class="text1">1a </p>
<p class="text1">2b </p>
<p class="text1">3c </p>
<p cl ......
hongqi162¡¢windindance
´Ë2È˳¤ÆÚ²»ÔÚÏߣ¬ÌرðÊÇwindindance
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
hongqi162»¹ÊǾ³£ÉÏÀ´×ª×ªµÄ
ÒýÓÃ
¸ü»»ÓÐÄÜÁ¦µÄÈËÉÏ
ÆäʵҲ²»ÊÇʲôÄÜÁ¦µÄÔÒò£¬Ö÷Òª¿ÉÄÜÊÇʱ¼äÎÊÌâ°É
¹¤×÷µÄ»¹ÒªÉÏ°à£¬Ñ§Ï ......
xml := CreateOleObject('Microsoft.XMLHTTP');
xml.Open('GET','http://www.google.com', False);
xml.Send;
xml.responseText;
ʹÓÃxml.responseText¿ÉÒÔ»ñÈ¡ÍøÒ³Ô´Âë,µ«ÊÇÔÙ´Î ......
³ÌÐòʹÓõÄÊÇOrcalÊý¾Ý¿â£¬Ï붨ÆÚ£¨Ã¿¼¾¶È£©¶ÔÊý¾Ý¿â½øÐб¸·Ý£¬Ã»É¶Í·Ð÷£¬ÇëÎÊÓ¦¸ÃÔõôŪ£¿
ÓÐÊ²Ã´ÌØÊâÒªÇóÂ𣬱ÈÈçҪǰ¶Ë½çÃæ£¿
Ò»°ãÓÃÊý¾Ý¿â×Ô´øµÄ¡°¼Æ»®ÈÎÎñ¡±ÅäÖÃһϾ͹»ÁË
ûÓÐÊ²Ã´ÌØÊâÒªÇó¡£ÀýÈ磬ֻҪµ ......
·þÎñÆ÷ÊÇÒ»¸öÍøÂçÉ豸£¬Ä¿Ç°ÔÚÄÚÍø£¬IP¹Ì¶¨Îª192.168.1.123£¬¿ª·Å9707~9738¹²31¸öÁ¬Ðø¶Ë¿Ú(ÓÃXP×Ô´øµÄ³¬¼¶ÖÕ¶ËÊÔ¹ýÁË£¬ÕâЩ¶Ë¿Ú¶¼¿ÉÒÔÕý³£Á¬½Ó¡¢Í¨Ñ¶)¡£
ÓÃTcpClient¿Ø¼þдµÄ¿Í»§¶ËÈí¼þ£¬¾Í9730Õâ¸ö¶Ë¿ÚÎÞ·¨½¨Á¢Á¬½ ......