Help with delphi 2006 (General questions)

by FiFtHeLeMeNt @, (6708 days ago)

Hello
I tried your sample with borland developer studio 2006 and cant make it work :( seems the sample is for delphi 6.
can u give me an instruction on how to use it with delphi 2006 ?
Best Regards

locked

Re: Help with delphi 2006

by fifthelement @, (6708 days ago) @ FiFtHeLeMeNt

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.

locked

Re: Help with delphi 2006

by Jasmine, (6707 days ago) @ fifthelement

5h, can you send your project - what you have so far - to techsupport@weonlydo.com ? We'll try it out and try to make it work. I know we have some tutorials for Delphi 2005 I believe, perhaps it will work in 2006 too.

Kreso

locked

Re: Help with delphi 2006

by fifthelement @, (6707 days ago) @ Jasmine

5h, can you send your project - what you have so far - to techsupport@weonlydo.com ? We'll try it out and try to make it work. I know we have some tutorials for Delphi 2005 I believe, perhaps it will work in 2006 too.

Kreso

Dear Sir
Thank you for your reply , in fact my project is nothing more than I sent for you in my previous post.
I will appreciate if you send me your tutorial for Delphi 2005 , I think it can solve my problem.
but if you still think you need my project to solve the problem , I will send it for you.
Regards

locked