Re: Help with delphi 2006 (General questions)
Finally I made it to work , but still I have problems with it.
events doesnt work , it seems that the component is not installed properly, because when I want to run my program I get the following error message :
wodtunnel1 doesnt have a corresponding component , remove declaration ?
the tunnel works now , but the events dont run. here is my code :
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,wodSSHTunnelLib_TLB, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
wodTunnel1:TwodTunnel;
procedure Label1Click(Sender: TObject);
procedure Button1Click(Sender: TObject);
procedure wodTunnel1Connected(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
wodTunnel1:=Twodtunnel.Create(wodTunnel1);
wodTunnel1.Hostname := 'host';
wodTunnel1.Login := 'demo';
wodTunnel1.Password := 'demo';
wodTunnel1.Port := 22;
wodTunnel1.Authentication := authPassword;
wodTunnel1.Protocol := SSHAuto;
wodTunnel1.Connect;
end;
procedure TForm1.WodTunnel1Connected(Sender: TObject);
begin
label1.Caption:='connected';
end;
procedure TForm1.Label1Click(Sender: TObject);
begin
label1.Caption:='click';
end;
end.
Complete thread:
- Help with delphi 2006 - FiFtHeLeMeNt, 2006-12-25, 05:55
- Re: Help with delphi 2006 - fifthelement, 2006-12-25, 06:47
- Re: Help with delphi 2006 - wodSupport, 2006-12-25, 11:00
- Re: Help with delphi 2006 - fifthelement, 2006-12-25, 12:23
- Re: Help with delphi 2006 - woddrazen, 2006-12-25, 15:53
- Re: Help with delphi 2006 - fifthelement, 2006-12-25, 12:23
- Re: Help with delphi 2006 - wodSupport, 2006-12-25, 11:00
- Re: Help with delphi 2006 - fifthelement, 2006-12-25, 06:47