Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : delphi

Delphi¶àÏß³Ìѧϰ£º¶àÏß³ÌÊý¾Ý¿â²éѯ£¨ADO£©

ADO¶àÏß³ÌÊý¾Ý¿â²éѯͨ³£»á³öÏÖ3¸öÎÊÌ⣺
1¡¢CoInitialize ûÓе÷ÓÃ
£¨CoInitialize was not
called£©£»ËùÒÔ£¬ÔÚʹÓÃÈκÎdbGo¶ÔÏóÇ°£¬±ØÐëÊÖ
µ÷ÓÃCoInitializeºÍCoUninitialize¡£µ÷ÓÃCoInitializeʧ°Ü»á²úÉú"CoInitialize was not
called"ÀýÍâ¡£
2¡¢»­²¼²»ÔÊÐí»æ»­
£¨Canvas does not allow
drawing£©£»ËùÒÔ£¬±ØÐëͨ¹ýSynchronize¹ý³ÌÀ´Í¨ÖªÖ÷Ï̷߳ÃÎÊÖ÷´°ÌåÉϵÄÈκοؼþ¡£
3¡¢²»ÄÜʹÓÃÖ÷ADOÁ¬½Ó
£¨Main TADoConnection cannot be
used!£©£»ËùÒÔ£¬Ïß³ÌÖв»ÄÜʹÓÃÖ÷Ïß³ÌÖÐTADOConnection¶ÔÏó£¬Ã¿¸öÏ̱߳ØÐë´´½¨×Ô¼ºµÄÊý¾Ý¿âÁ¬½Ó¡£
     Delphi2007°²×°ºóÔÚX:\Program Files\Common Files\CodeGear
Shared\DataĿ¼ÏÂÓÐÒ»¸ödbdemos.mdbÎļþ£¬ÓÃÀ´×÷Ϊ²âÊÔµÄÀý×Ó¡£dbdemos.mdbÖеÄcustomer±í±£´æÁË¿Í»§ÐÅ
Ï¢£¬orders±íÖб£´æÁ˶©µ¥ÐÅÏ¢¡£
      
²âÊÔ³ÌÐòÁ÷³Ì´óÖÂÊÇÕâÑùµÄ£ºÔÚÖ÷´°ÌåÉÏ·ÅTADOConnectionºÍTQuery¿Ø¼þ£¬Æô¶¯Ê±Õâ¸öTQuery´ÓCustomer±íÖвé³ö¿Í»§±àÂë
CustNoºÍ¹«Ë¾Ãû³ÆCompany£¬·Åµ½Èý¸öCombox¿òÖУ¬·Ö±ðÔÚÈý¸öÁбí¿òÖÐÑ¡¶¨¿Í»§¹«Ë¾Ãû³Æ£¬°´ÕÕ¹«Ë¾Ãû³ÆËù¶ÔÓ¦µÄ¿Í»§´úÂ뽨Á¢Èý¸ö ......

CSDN Ñ°ÕÒ×îºóÒ»¸öDelphiϬÀû¸ç

°Ù¶ÈÖªµÀÕæÀ¬»ø£¬ÄÇô´óµÄÒ»¸öÆóÒµ£¬¾Í¸øÄÇôµã¿Õ¼ä£¬Ìá¸öÎÊ1500×ÖÏÞÖÆÁË¡£ÏëÏëÀ´csdn£¬¹ÒÁËÒ»¸öÐÇÆÚ¶¼Ã»ÈËÀí£¬²»ÖªµÀÊÇÎÒ·ÖÌ«ÉÙ£¬»¹ÊÇÕæµÄ¸ßÊÖ¶¼²»À´ÕâÀ£¿£¿ÆÚ´ýÒ»¸öÓ¢Ð۵ĵ½À´£¬²ËÄñÎÒÔÚÕâÀï°ÝлÁË£¡£¡ÆäʵÕâ¸ù±¾²»ÊÇÉúÃüÄÑÌ⣬ÎҲŸոÕѧ£¬Îʲ»³öÉúÃü¸ßÉîµÄÌâÄ¿À´£º
rT;
delphi7 ,DB:oracle
ÎÊÌâÔËÐй¤³ÌÎļþexe²»±¨´í£¬³öÏÖÁ˵ÇÈë½çÃæÈ´£¬ÎÞ·¨½øÈë»ù±¾½çÃ棬µ÷³öÈÎÎñ¹ÜÀíÆ÷¿´²»µ½EXEµÄ½ø³Ì£¬ÉúÃüÕâ¸öϵͳÒѾ­Í˳öÁË¡£
Ö÷½çÃæµÄ´úÂ룺login.pass  £¬name ÊôÐÔfrmLogin
unit main;
interface
uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Buttons, StdCtrls;
type
  TfrmMain = class(TForm)
    SpeedButton2: TSpeedButton;
    SpeedButton3: TSpeedButton;
    SpeedButton4: TSpeedButton;
    SpeedButton5: TSpeedButton;
    SpeedButton6: TSpeedButton;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    procedure SpeedButton2Click( ......

DELPHIÓû§µÇ¼·½°¸

3.2  Óû§µÇ¼·½°¸
ÔÚ½øÈëÒ»¸öϵͳʱ£¬±ØÐëÏÈÔڵǼ´°ÌåÖÐÊäÈëÕýÈ·µÄÓû§ÃûºÍÃÜÂë²ÅÄܽøÈë¡£ÕâÑù¿ÉÒÔÈ·±£ÏµÍ³µÄ°²È«ÐԺͱ£ÃÜÐÔ£¬µÇ¼´°ÌåµÄÖÆ×÷°´ÕÕϵͳµÄ´óС¼°Óô¦£¬¿ÉÒÔ·ÖΪ²»Í¬µÄµÇ¼´°ÌåÑùʽ£¬ÔÚϵͳµÚÒ»´ÎµÇ¼ǰ£¬Ê×ÏÈÒª¶Ô²Ù×÷Ô±ÐÅÏ¢½øÐÐÏàÓ¦µÄÉèÖᣱ¾½Ú½«¶ÔµÇ¼´°Ìå¼°²Ù×÷Ô±¹ÜÀí´°ÌåµÄÖÆ×÷¹ý³Ì½øÐÐÏêϸµÄ˵Ã÷¡£
3.2.1  ¼òµ¥Óû§µÇ¼
¼òµ¥Óû§µÇ¼£¬ÊÇÖ¸ÔڵǼ´°ÌåÖÐֻͨ¹ýÓû§Ãû¼°ÃÜÂë½øÐеǼ£¬Óû§µÇ¼ºó¿ÉÒÔ¶ÔϵͳÖеÄÊý¾Ý½øÐÐÈÎÒâ²Ù×÷¡£ÕâÊÇ×î¼òµ¥µÄµÇ¼·½Ê½¡£
1£®·½°¸·ÖÎö
ÔڵǼ´°ÌåÖУ¬ÊäÈëÓû§ÃûºÍÃÜÂ룬µ¥»÷È·¶¨£¨»òµÇ¼£©°´Å¥£¬ÏµÍ³½«ÔÚÊý¾Ý±íÖвéÕÒÓÐÎÞÏàͬµÄ¼Ç¼£¬Èç¹ûÓÐÔò½øÈëÖ÷´°Ì壻Èç¹ûûÓÐÔò¸ø³ö´íÎóÌáʾ¡£ÏÂÃæ¸ø³ö¼òµ¥Óû§µÇ¼µÄÁ÷³Ìͼ£¬Èçͼ3.3Ëùʾ¡£
ͼ3.3  ¼òµ¥Óû§µÇ¼Á÷³Ìͼ
ÔÚÖÆ×÷¼òµ¥Óû§µÇ¼·½°¸Ê±£¬Ö÷ÒªÓÐÒÔϼ¸¸öÄѵ㣺
£¨1£©ÔõÑùÔÚÓû§Êý¾Ý±íÖжÔÓû§Ãû¼°ÃÜÂë½øÐÐÌí¼Ó»òÐ޸ġ£
£¨2£©ÈçºÎÔÚÌí¼ÓÓû§Ãûʱ£¬ÌáʾÓû§ÃûÒѾ­´æÔÚ¡£
2£®ÊµÊ©¹ý³Ì
ÔÚ¿ª·¢Ò»Ð©Ð¡Ð͵ij¬ÊйÜÀíÈí¼þʱ£¬ÒòΪ³¬Êеķ¶Î§½ÏС£¬²»ÐèҪʹÓÃȨÏÞÀ´ÖÆÔ¼Óû§£¬Õâʱ¾Í¿ÉÒÔʹÓüòµ¥Óû§µÇ¼·½°¸¡£ÏÂÃæÒÔÒ»¸öСÐͳ¬ÊÐΪÀý£¬½éÉܼòµ¥µÇ¼·½°¸µÄÖÆ×÷¹ ......

DELPHIÓû§µÇ¼·½°¸

3.2  Óû§µÇ¼·½°¸
ÔÚ½øÈëÒ»¸öϵͳʱ£¬±ØÐëÏÈÔڵǼ´°ÌåÖÐÊäÈëÕýÈ·µÄÓû§ÃûºÍÃÜÂë²ÅÄܽøÈë¡£ÕâÑù¿ÉÒÔÈ·±£ÏµÍ³µÄ°²È«ÐԺͱ£ÃÜÐÔ£¬µÇ¼´°ÌåµÄÖÆ×÷°´ÕÕϵͳµÄ´óС¼°Óô¦£¬¿ÉÒÔ·ÖΪ²»Í¬µÄµÇ¼´°ÌåÑùʽ£¬ÔÚϵͳµÚÒ»´ÎµÇ¼ǰ£¬Ê×ÏÈÒª¶Ô²Ù×÷Ô±ÐÅÏ¢½øÐÐÏàÓ¦µÄÉèÖᣱ¾½Ú½«¶ÔµÇ¼´°Ìå¼°²Ù×÷Ô±¹ÜÀí´°ÌåµÄÖÆ×÷¹ý³Ì½øÐÐÏêϸµÄ˵Ã÷¡£
3.2.1  ¼òµ¥Óû§µÇ¼
¼òµ¥Óû§µÇ¼£¬ÊÇÖ¸ÔڵǼ´°ÌåÖÐֻͨ¹ýÓû§Ãû¼°ÃÜÂë½øÐеǼ£¬Óû§µÇ¼ºó¿ÉÒÔ¶ÔϵͳÖеÄÊý¾Ý½øÐÐÈÎÒâ²Ù×÷¡£ÕâÊÇ×î¼òµ¥µÄµÇ¼·½Ê½¡£
1£®·½°¸·ÖÎö
ÔڵǼ´°ÌåÖУ¬ÊäÈëÓû§ÃûºÍÃÜÂ룬µ¥»÷È·¶¨£¨»òµÇ¼£©°´Å¥£¬ÏµÍ³½«ÔÚÊý¾Ý±íÖвéÕÒÓÐÎÞÏàͬµÄ¼Ç¼£¬Èç¹ûÓÐÔò½øÈëÖ÷´°Ì壻Èç¹ûûÓÐÔò¸ø³ö´íÎóÌáʾ¡£ÏÂÃæ¸ø³ö¼òµ¥Óû§µÇ¼µÄÁ÷³Ìͼ£¬Èçͼ3.3Ëùʾ¡£
ͼ3.3  ¼òµ¥Óû§µÇ¼Á÷³Ìͼ
ÔÚÖÆ×÷¼òµ¥Óû§µÇ¼·½°¸Ê±£¬Ö÷ÒªÓÐÒÔϼ¸¸öÄѵ㣺
£¨1£©ÔõÑùÔÚÓû§Êý¾Ý±íÖжÔÓû§Ãû¼°ÃÜÂë½øÐÐÌí¼Ó»òÐ޸ġ£
£¨2£©ÈçºÎÔÚÌí¼ÓÓû§Ãûʱ£¬ÌáʾÓû§ÃûÒѾ­´æÔÚ¡£
2£®ÊµÊ©¹ý³Ì
ÔÚ¿ª·¢Ò»Ð©Ð¡Ð͵ij¬ÊйÜÀíÈí¼þʱ£¬ÒòΪ³¬Êеķ¶Î§½ÏС£¬²»ÐèҪʹÓÃȨÏÞÀ´ÖÆÔ¼Óû§£¬Õâʱ¾Í¿ÉÒÔʹÓüòµ¥Óû§µÇ¼·½°¸¡£ÏÂÃæÒÔÒ»¸öСÐͳ¬ÊÐΪÀý£¬½éÉܼòµ¥µÇ¼·½°¸µÄÖÆ×÷¹ ......

DELPHIÓû§µÇ¼·½°¸

3.2  Óû§µÇ¼·½°¸
ÔÚ½øÈëÒ»¸öϵͳʱ£¬±ØÐëÏÈÔڵǼ´°ÌåÖÐÊäÈëÕýÈ·µÄÓû§ÃûºÍÃÜÂë²ÅÄܽøÈë¡£ÕâÑù¿ÉÒÔÈ·±£ÏµÍ³µÄ°²È«ÐԺͱ£ÃÜÐÔ£¬µÇ¼´°ÌåµÄÖÆ×÷°´ÕÕϵͳµÄ´óС¼°Óô¦£¬¿ÉÒÔ·ÖΪ²»Í¬µÄµÇ¼´°ÌåÑùʽ£¬ÔÚϵͳµÚÒ»´ÎµÇ¼ǰ£¬Ê×ÏÈÒª¶Ô²Ù×÷Ô±ÐÅÏ¢½øÐÐÏàÓ¦µÄÉèÖᣱ¾½Ú½«¶ÔµÇ¼´°Ìå¼°²Ù×÷Ô±¹ÜÀí´°ÌåµÄÖÆ×÷¹ý³Ì½øÐÐÏêϸµÄ˵Ã÷¡£
3.2.1  ¼òµ¥Óû§µÇ¼
¼òµ¥Óû§µÇ¼£¬ÊÇÖ¸ÔڵǼ´°ÌåÖÐֻͨ¹ýÓû§Ãû¼°ÃÜÂë½øÐеǼ£¬Óû§µÇ¼ºó¿ÉÒÔ¶ÔϵͳÖеÄÊý¾Ý½øÐÐÈÎÒâ²Ù×÷¡£ÕâÊÇ×î¼òµ¥µÄµÇ¼·½Ê½¡£
1£®·½°¸·ÖÎö
ÔڵǼ´°ÌåÖУ¬ÊäÈëÓû§ÃûºÍÃÜÂ룬µ¥»÷È·¶¨£¨»òµÇ¼£©°´Å¥£¬ÏµÍ³½«ÔÚÊý¾Ý±íÖвéÕÒÓÐÎÞÏàͬµÄ¼Ç¼£¬Èç¹ûÓÐÔò½øÈëÖ÷´°Ì壻Èç¹ûûÓÐÔò¸ø³ö´íÎóÌáʾ¡£ÏÂÃæ¸ø³ö¼òµ¥Óû§µÇ¼µÄÁ÷³Ìͼ£¬Èçͼ3.3Ëùʾ¡£
ͼ3.3  ¼òµ¥Óû§µÇ¼Á÷³Ìͼ
ÔÚÖÆ×÷¼òµ¥Óû§µÇ¼·½°¸Ê±£¬Ö÷ÒªÓÐÒÔϼ¸¸öÄѵ㣺
£¨1£©ÔõÑùÔÚÓû§Êý¾Ý±íÖжÔÓû§Ãû¼°ÃÜÂë½øÐÐÌí¼Ó»òÐ޸ġ£
£¨2£©ÈçºÎÔÚÌí¼ÓÓû§Ãûʱ£¬ÌáʾÓû§ÃûÒѾ­´æÔÚ¡£
2£®ÊµÊ©¹ý³Ì
ÔÚ¿ª·¢Ò»Ð©Ð¡Ð͵ij¬ÊйÜÀíÈí¼þʱ£¬ÒòΪ³¬Êеķ¶Î§½ÏС£¬²»ÐèҪʹÓÃȨÏÞÀ´ÖÆÔ¼Óû§£¬Õâʱ¾Í¿ÉÒÔʹÓüòµ¥Óû§µÇ¼·½°¸¡£ÏÂÃæÒÔÒ»¸öСÐͳ¬ÊÐΪÀý£¬½éÉܼòµ¥µÇ¼·½°¸µÄÖÆ×÷¹ ......

DELPHIÓû§µÇ¼·½°¸

3.2  Óû§µÇ¼·½°¸
ÔÚ½øÈëÒ»¸öϵͳʱ£¬±ØÐëÏÈÔڵǼ´°ÌåÖÐÊäÈëÕýÈ·µÄÓû§ÃûºÍÃÜÂë²ÅÄܽøÈë¡£ÕâÑù¿ÉÒÔÈ·±£ÏµÍ³µÄ°²È«ÐԺͱ£ÃÜÐÔ£¬µÇ¼´°ÌåµÄÖÆ×÷°´ÕÕϵͳµÄ´óС¼°Óô¦£¬¿ÉÒÔ·ÖΪ²»Í¬µÄµÇ¼´°ÌåÑùʽ£¬ÔÚϵͳµÚÒ»´ÎµÇ¼ǰ£¬Ê×ÏÈÒª¶Ô²Ù×÷Ô±ÐÅÏ¢½øÐÐÏàÓ¦µÄÉèÖᣱ¾½Ú½«¶ÔµÇ¼´°Ìå¼°²Ù×÷Ô±¹ÜÀí´°ÌåµÄÖÆ×÷¹ý³Ì½øÐÐÏêϸµÄ˵Ã÷¡£
3.2.1  ¼òµ¥Óû§µÇ¼
¼òµ¥Óû§µÇ¼£¬ÊÇÖ¸ÔڵǼ´°ÌåÖÐֻͨ¹ýÓû§Ãû¼°ÃÜÂë½øÐеǼ£¬Óû§µÇ¼ºó¿ÉÒÔ¶ÔϵͳÖеÄÊý¾Ý½øÐÐÈÎÒâ²Ù×÷¡£ÕâÊÇ×î¼òµ¥µÄµÇ¼·½Ê½¡£
1£®·½°¸·ÖÎö
ÔڵǼ´°ÌåÖУ¬ÊäÈëÓû§ÃûºÍÃÜÂ룬µ¥»÷È·¶¨£¨»òµÇ¼£©°´Å¥£¬ÏµÍ³½«ÔÚÊý¾Ý±íÖвéÕÒÓÐÎÞÏàͬµÄ¼Ç¼£¬Èç¹ûÓÐÔò½øÈëÖ÷´°Ì壻Èç¹ûûÓÐÔò¸ø³ö´íÎóÌáʾ¡£ÏÂÃæ¸ø³ö¼òµ¥Óû§µÇ¼µÄÁ÷³Ìͼ£¬Èçͼ3.3Ëùʾ¡£
ͼ3.3  ¼òµ¥Óû§µÇ¼Á÷³Ìͼ
ÔÚÖÆ×÷¼òµ¥Óû§µÇ¼·½°¸Ê±£¬Ö÷ÒªÓÐÒÔϼ¸¸öÄѵ㣺
£¨1£©ÔõÑùÔÚÓû§Êý¾Ý±íÖжÔÓû§Ãû¼°ÃÜÂë½øÐÐÌí¼Ó»òÐ޸ġ£
£¨2£©ÈçºÎÔÚÌí¼ÓÓû§Ãûʱ£¬ÌáʾÓû§ÃûÒѾ­´æÔÚ¡£
2£®ÊµÊ©¹ý³Ì
ÔÚ¿ª·¢Ò»Ð©Ð¡Ð͵ij¬ÊйÜÀíÈí¼þʱ£¬ÒòΪ³¬Êеķ¶Î§½ÏС£¬²»ÐèҪʹÓÃȨÏÞÀ´ÖÆÔ¼Óû§£¬Õâʱ¾Í¿ÉÒÔʹÓüòµ¥Óû§µÇ¼·½°¸¡£ÏÂÃæÒÔÒ»¸öСÐͳ¬ÊÐΪÀý£¬½éÉܼòµ¥µÇ¼·½°¸µÄÖÆ×÷¹ ......
×ܼǼÊý:644; ×ÜÒ³Êý:108; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [1] [2] [3] [4] 5 [6] [7] [8] [9] [10]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ