¹ØÓÚDELPHI¶àÏß³Ìͬ²½µÄÎÊÌâ - Delphi / ·Ç¼¼ÊõÇø
¸÷λÅóÓÑ´ó¼ÒºÃ£¬±¾È˸տªÊ¼Ñо¿¶àỊ̈߳¬»¹Óкܶ಻Ã÷°×µÄµØ·½£¬Íû´ó¼ÒÖ¸½Ì£¬Ð»Ð»£¡
ÎÊÌâÊÇÕâÑùµÄ£º
¶¨ÒåÁ½¸öỊ̈߳¬µ±°´Å¥Á¬½ÓʱִÐÐÁ¬½Ó´´½¨Ò»¸öÏß³ÌÐò£¬Á¬½Ó³É¹¦ºóÖ´Ðвéѯ°´Å¤ÔÙ´´½¨Ò»¸öỊ̈߳¬ÏÖÔÚÎÊÌâÊDzéѯÏß³Ì
ÖÐÎÞ·¨ÀûÓá¡Á¬½ÓÏ̵߳ÄSocketConnection1£¬ÈçºÎͬ²½ÄØ£¿
²¿·Ö´úÂëÈçÏ£º
¶¨Ò壺
type
Tthread1 = class(Tthread)
protected
procedure Execute;override;
procedure getSocketConn;
end;
type
Tthread2 = class(Tthread)
protected
procedure Execute;override;
procedure getClientDataSet;
end;
procedure Tthread1.Execute;
begin
Try
FreeOnTerminate:=true;
ConToolsFrm.SocketConnection1.ServerGUID:='{2C8E3F43-ABE4-11D4-B352-00E04C67568C}';
ConToolsFrm.SocketConnection1.ServerName:='apply_tier.Apply_data';
ConToolsFrm.SocketConnection1.Connected:=False;
ConToolsFrm.SocketConnection1.Host:= ConToolsFrm.edtHost.Text;
ConToolsFrm.SocketConnection1.Connected:=True;
ShowMessage('Á¬½Ó³É¹¦£¡');
Except
ShowMessage('Á¬½Óʧ°Ü£¬Çë¶Ï¿ªºóÔÙÊÔ£¡');
ConToolsFrm.SocketConnection1.Connected:=False;
end;
end;
procedure Tthread2.Execute;
var
sqlStr:string;
begin
ConToolsFrm.ClientDataSet1.Close;
&nb
Ïà¹ØÎÊ´ð£º
·µ»ØµÄÄÚÈÝÊÇÈçÏ´úÂë,ÔõôÄÜÇþµÀ2b?
<p class="text1">1a </p>
<p class="text1">2b </p>
<p class="text1">3c </p>
<p cl ......
Ò»Ö±ÏëʹÓÃdll£¬µ«delphiµÄdll×Ó´°Ìå¾³£Óи÷ÖÖÎÊÌ⣬±ÈÈçÖ÷´°¿ÚÓëdll×Ó´°¿ÚµÄ½¹µãÎÊÌ⣬×Ó´°¿ÚÖпؼþµÄtab¼ü¡¢Èȼü¡¢enter¼üµÈµÄÎÊÌ⣬×Ó´°¿ÚÍ˳öµÄÎÊÌ⡢ƽÃæ°´Å¥ÎÊÌâµÈµÈ£¬ÍøÕ¾ÉϽøÐÐÁËËÑË÷£¬Ã»ÓбȽÏÍêÃÀµÄ½â¾ö· ......
СµÜ×î½ü×öÁ˼¸¸ö·þÎñ ·þÎñÔËÐÐÐèҪһЩ²ÎÊý ²ÎÊýÊÇͨ¹ýÒ»¸ö³ÌÐò½çÃæÐÞ¸ÄµÄ ²ÎÊý±£´æÔÚaccessÊý¾Ý¿âÖÐ ÏÖÔÚ³öÏÖÒ»ÁéÒìÏÖÏó µ¥¶ÀµÄ·þÎñÊÇ¿ÉÒÔ½øÐпØÖƵģ¨·þÎñµÄÍ£Ö¹ ÔÝÍ£µÈµÈ£©µ«ÊǶà¸ö·þÎñÒ»Æð¿ªÆô»á³öÏÖÒ»·þÎñ¿ª ......
ÎÒ×öÁËÒ»¸ö´ðÌâ³ÌÐò£¬ÏëÔÚ´ðÌâÒ³ÃæÒ»³öÏÖµÄʱºò¿ªÊ¼µ¹¼Æʱ60Ã룬ʱ¼äµ½µÄʱºò·¢³ö·äÃù£¬Ìáʾʱ¼äµ½£¬²»Ó÷äÃù£¬ÓÃÌáʾ¿òÒ²¿ÉÒÔ£¬´úÂëÔõÑùд£¬·äÃùº¯ÊýÊÇʲô£¬Ð»Ð»
Ïȶ¨Ò»¸ö±äÁ¿ ±ÈÈç i £º= 60£»
timerÉèÖÃΪ1Ã룬 ......