Help with delphi 2006 - WeOnlyDo Discussion board

Help with delphi 2006 (General questions)

by FiFtHeLeMeNt, Monday, December 25, 2006, 05:55 (6543 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

Re: Help with delphi 2006

by fifthelement, Monday, December 25, 2006, 06:47 (6543 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.

Re: Help with delphi 2006

by wodSupport, Monday, December 25, 2006, 11:00 (6543 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

Re: Help with delphi 2006

by fifthelement, Monday, December 25, 2006, 12:23 (6543 days ago) @ wodSupport

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

Re: Help with delphi 2006

by woddrazen, Monday, December 25, 2006, 15:53 (6543 days ago) @ fifthelement

Hi,


You can find explanation how to import wodSSHTunnel in our knowledge base, here:
http://www.weonlydo.com/index.asp?kb=1&View=entry&CategoryID=5&EntryID=67

Tutorial is for wodSFTP but it is same procedure for wodSSHTunnel.

If you need sample please send e-mail to techsupport@weonlydo.com


Regards,
Drazen