Autor Beitrag
Fischman
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Mo 11.08.03 19:14 
Hallo Leute,

Ich komme da nicht weiter mit mein Programm, wie kann ich zum Einloggen das Passwort und Username realisieren. Mit denn Büchern komme ich auch nicht weit. Weil ja nicht so viel drin steht. Wenn mir da einer weiter helfen könnte.

Danke Uwe
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm2.Button1Click(Sender: TObject);
begin
if FTP1.State=prcConnected then FTP1.Quit;
Ftp1.Connect(Edit1.Text, 21);
end;

procedure TForm2.FTP1ProtocolStaeChanged(Sender: TObject;
  ProtocolState: Smallint);
begin
if ProtocolState=ftpAuthentication then FTP1.Authenticate('Username','Passwort');
if ProtocolState=ftpTransaction then FTP1.List('.');


Moderiert von user profile iconTino: Delphi-Tags hinzugefügt.
oPPi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 66

MS Win 7 Pro, WinXP Pro
D3 Pro, TurboDelhi, Kylix 3 Pro
BeitragVerfasst: Di 12.08.03 02:37 
Hy,

wie wärs damit:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.Button1Click(Sender: TObject);
begin
  FTP1.Host := txt_Host.Text;
  FTP1.UserID := txt_UserID.Text;
  FTP1.Password := txt_Password.Text;
  FTP1.Port := 21;
  FTP1.Connect;
  If FTP1.Connected = True Then
  ShowMessage('Verbunden')
  Else
  ShowMessage('Nicht Verbunden');
end;


Wenn du ein Homepage Paket bei Strato hast dann ist
FTP1.UserID = FTP1.Host

Gruß
oPPi
Fischman Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 137

Win XP
D3 Prof / D7
BeitragVerfasst: Di 12.08.03 07:26 
Werde ich mal versuchen ob es funtioniert bei mir.
Ich melde mich dann wenn es nicht so klappt wie es soll.

Gruß Uwe