¹ØÓÚDELPHIÎÊÌâµÄ - Delphi / ÓïÑÔ»ù´¡/Ëã·¨/ϵͳÉè¼Æ
ÎÒÊÇDELPHIµÄ³õѧÕߣ¬µ«ÀÏʦҪÇóÎÒÃÇ×ö¿Î³ÌÉè¼Æ£¬´ÓÊé±¾ÀïÃ濽ÁË´úÂë×Ô¼ºÑо¿£¬µ«ÀÏÊdzöÎÊÌ⣬ÓÐËÊÇÕâ·½ÃæµÄ¸ßÊÖ°¡£¬ÄÜ·ñÁôϸöÁªÏµµÄ·½Ê½°ï°ïæ°¡
³öʲôÎÊÌ⣬Çë¾ßÌå˵Ã÷
·¢ÏÖ¡¢½â¾öÎÊÌâµÄ¹ý³Ì¾ÍÊÇѧϰµÄ¹ý³Ì
ÀÏÊÇÌáʾ¡°saµÇ¼ʧ°Ü¡±£¬ÊDz»ÊǸú¿âûÁ¬½ÓºÃ°¡
³öÏÖÕâÖÖ´íÎóµÄÎÊÌâºÜ¶à£¬ÂýÂýÅŲ顣
¹âÓдúÂ룬ÎÞÊý¾Ý¿â¡£°ÑÊý¾Ý¿â½¨Á¢ÆðÀ´ÔÙÔËÐÐ
¿âÓÐÆðÀ´ÁË£¬ Óë¿âÁ¬½ÓµÄÄǸö´úÂëÊÇÕâÑùµÄ
const
connectionStr='Provider=SQLOLEDB.1;'+'Password=sa;Persist Security Info=true;'+
'User ID=sa;Initial Catalog=±ÏÒµÉú¾ÍÒµ¹ÜÀíϵͳ;'+'Date Source=(local)';
ÕâÑùÓ¦¸Ãû´í°É¡£ ÇëÎÊÏ Õâ±ßsaÊDz»ÊDz»Äܸİ¡
Õâ¸öÂ𣬿â½á¹¹ ±í½á¹¹ µÇ¼·½Ê½ µÈµÈ ×îºÃ»¹ÊÇ×Ô¼ºÉè¼ÆµÄºÃ
¿´±ðÈ˵ĴúÂë »á´óÁ¿µÄ³ö´í ²¢²»ÈÝÒ×ÅÅ´í
Õâ¸öÎÊÌâ¿ÉÒԲ鿴Êý¾Ý¿âÃÜÂëÓÐûÓÐд¶Ô£¬»òÕßÃÜÂëÊÇ·ñÓб£´æ
»Ø¸´7Â¥£ºÎÒûÉèÊý¾Ý¿âµÄÃÜÂë°¡£¡ÒªÉèÂð£¿
Êý¾Ý¿âĬÈÏÃÜÂëΪ¿Õ¡£
ѧϰÖÐ
ºÇºÇ£¬ÂýÂýÀ´£¬²»ÒªÅÂÑÛÇ°µÄÀ§ÄÑ£¬³õѧÕß¹²Ãã
×Ô¼ºÍϸöADOConnection¿Ø¼þ£¬¿´ÊÇ·ñ¿ÉÒԳɹ¦Á¬½ÓÊý¾Ý¿â
¿ÉÒÔÁË¡£Ð»Ð»
Ïà¹ØÎÊ´ð£º
Çë½Ì¸÷·¸ßÊÖ¡£ÎäÁÖÇ°±²¡£ÎÒ½«B.EXE×ö³É×ÊÔ´Îļþ£¬È»ºó¼Óµ½123.dllÖС£ÓÃA.EXEÀ´µ÷ÓÃ123.dllÖеÄB.EXE
Çë¸÷λǰ±²°ïæָ½ÌÏ¡£A.exeÈçºÎÀ´µ÷ÓÃdllÖеÄexe£¿´úÂëÓÖ¸ÃÈçºÎд£¿
ÎÞÈ˻شð£¿
×ö³É×ÊÔ´Î ......
var
FXmlDoc:IXMLDomDocument;
begin
ʹÓÃFXmlDoc.save('Îļþ·¾¶')£»
½á¹û·¢ÏÖ±£´æºóµÄ¸ÃÎļþÖÐÎÄÈ«²¿ÎªÂÒÂ룬ÈçºÎ½â¾ö
end£»
²Î¿¼Õâ¸ö
http://blog.csdn.net/jiangnanandi/archive/2008/11/28/3399804.aspx ......
delphi 數據類ÐÍ ¶¨義A~Z 為ÓÐÐòÐÍ£¬A為×îС£¬Z×î´ó¡£
Delphi(Pascal) code:
var
arr:array ['A'..'Z'] of Char;
Óü¯ºÏ¸ã¶¨
Ôõ麼È¥運ËãÄØ£¿inc() ......
ÎÊÌâÊÇÕâÑù×ÓµÄ
ÎÒÔÚform1Öж¨ÒåÁËÒ»¸ösk1:tsocket
È»ºóÔÚform2ÖÐ
ÓÃsk1 ·¢ËͶ«Î÷ ·¢Íêºó socket ×Ô¶¯¹Ø±ÕÁË~
µ«ÊÇÔÚform1Öз¢¶«Î÷ Èç¹ûÎÒ²»ÔËÐÐ closesocket µÄ»° ÊDz»»á¶ÏµôµÄ
ÎÊÏ ÕâÊÇÔõô»ØÊÂ
ÁíÎÒÔÚ for ......