Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

delphi´úÀíÎÊÌâ Çó½â ÔÚÏßµÈ

delphi´úÀíÎÊÌâ Çó½â ÔÚÏßµÈ
procedure TForm1.Button3Click(Sender: TObject);
var
  info : INTERNET_PROXY_INFO;
  reg  : TRegistry;
begin

  reg := TRegistry.Create;
  reg.RootKey:=HKEY_CURRENT_USER;
  if reg.OpenKey('\Software\Microsoft\Windows\CurrentVersion\Internet Settings',False) then
  begin
    reg.Writestring('ProxyServer','socks='+edit2.Text);
    reg.Writestring('ProxyEnable', '1');
  end;
  reg.CloseKey;
  reg.Free;

  info.dwAccessType:=INTERNET_OPEN_TYPE_PROXY;
  info.lpszProxy:=pchar('socks='+edit2.Text) ;
  InternetSetOption(nil,INTERNET_OPTION_PROXY,@info,1000);

  InternetSetOption(nil,INTERNET_OPTION_REFRESH, nil,0);
  InternetSetOption(nil,INTERNET_OPTION_SETTINGS_CHANGED, nil,0);

end;

ÎÒ°Ñ´úÀíµØַдÔÚ edit2.textÉÏÃæ È»ºó×¢²á±íÐ޸ĴúÀí

¿ÉÊÇinfo.lpszProxy:=pchar('socks='+edit2.Text) ; ÕâÒ»¾ä ²»¼Ópachr±àÒë²»³É¹¦
¼ÓÉÏÒÔºó ´úÀí²»Äܳɹ¦ÉèÖÃ

СµÜÎÊinfo.dwAccessType:=INTERNET_OPEN_TYPE_PROXY;
  info.lpszProxy:=pchar('socks='+edit2.Text) ;
  InternetSetOption(nil,INTERNET_OPTION_PROXY,@info,1000);

  InternetSetOption(nil,INTERNET_OPTION_REFRESH, nil


Ïà¹ØÎÊ´ð£º

ÓÐûÓÐÈËÑо¿¹ýDelphi for PHP

ÈçÌâ¡£
¸Ð¾õÈçºÎ£¿½»Á÷Ï¡£

ûÓÐÑо¿¹ý£¬ºÇºÇ

ÓÐɶÑо¿Í·£¿

ÄǸö¶«Î÷£¬ÊǸö¼¦Àߣ¬£¬Ã»ÓÐʲôÒâ˼£¬·¢ÏÖ£¡£¡

ÓÃÀ´×öB/S¼Ü¹¹µÄMISϵͳµÄ»°Ó¦¸Ã¿ÉÒÔÌá¸ß½çÃ濪·¢µÄЧÂÊ°É£¿


ÒòΪ²»ÊìϤDelphi £ ......

Delphi ÏñÍö¹úµÄÄÏËΣ¬ÊÔÎÊÕâÓïÑÔ»¹ÓÐǰ;Âð£¿

Delphi ÏñÍö¹úµÄÄÏËΣ¬ÊÔÎÊÕâÓïÑÔ»¹ÓÐǰ;Âð£¿
Win32¿ª·¢²»ÈçC#£»
ÃæÏñ¶ÔÏñ¿ª·¢²»ÈçJAVA£»
ϵͳ¿ª·¢²»ÈçVC++6.0£»
ÄÜÓÃÐÔ²»ÈçVB6.0£»
²»Ö§³ÖWeb¿ª·¢¡£¡£¡£
³ö¸öDelphi 2010Ãâ·ÑÒ»Äê»áÓÐÈËÓÃÂ𣿠......

delphi Êý×éÈçºÎ¶¯Ì¬Ôö¼Ó

//ÏÂÃæÊÇÒ»¼Ç¼£¬Èýά×ø±ê
type
  Tposition  = record
    x:integer;
    y:integer;
    z:integer;
  end;

//======ÏÂÃæÊÇÒªÔÚÒ»¸öÑ­»· ......

delphiÁ¬postgresql³É¹¦£¬µ«²»ÄÜÔö¼Ó»òÐ޸ļǼ

»·¾³winXP,delphi 7, postsgresql 8.4, ÒÑ°²×°odbc for postgresql

Á¬½Ó·½Ê½ado -> odbc -> postgresql

Delphi(Pascal) code:

con1.ConnectionString := 'Provider=MSDASQL.1;Extended Pr ......

delphi¹Ø¼ü×Ö

unit TestRa;
interface
uses
type
var
implementation

´´½¨Ò»¸öformϵͳ×Ô¶¯Éú³ÉÕ⼸¸ö¹Ø¼ü×Ö£¡
1.ËûÃÇÖ®¼äÓÐʲô¹ØÁªÂð£¿
2.ϵͳ¶ÔËûÃÇÊÇÈçºÎ¶¨ÒåµÄ£¿
3.delphiÓïÑÔÌåϵ½á¹¹ÊÇÔõô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ