VB.NET sample ? (General questions)
Does anyone can send me a VB.NET Sample ?
Thanks a lot !
Bertrand
Re: VB.NET sample ?
I tryed this but it doesn't connect, I don't get the Ssh1_Connected1()
Any help ?
Public Class Form1
Public WithEvents Ssh1 As wodSSHTunnelLib.wodTunnel
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim ssh1 As New wodSSHTunnelLib.wodTunnel
ssh1.Hostname = XXXXX.XXXXX.XXXXX
Ssh1.Login = XXXXXXXXXX
ssh1.Password = XXXXX
ssh1.Timeout = 60
ssh1.Connect()
End Sub
Private Sub SSH1_ChannelStart(ByVal Chan As wodSSHTunnelLib.IChannel)
MsgBox( go! )
End Sub
Private Sub Ssh1_Connected1() Handles Ssh1.Connected
MsgBox( Connected )
End Sub
End Class
Re: VB.NET sample ?
Bertrand,
problem is that you initialize component twice - and 2nd instance is defined locally, and destroyed when funcion Form1_Load exits.
So, in Form1_Load change
Dim Ssh1 as new ....
to
Set Ssh1 = new ....
and that should do the trick.
Hope I helped.
Kreso
Re: VB.NET sample ?
Many thanks !
It's works now...
Have to understand how to publish to dll
Re: VB.NET sample ?
Bertrand,
what exactly do you mean by publish to dll?
If by that you mean distributing of the component, that's not possible for Demo version. Demo version cannot be distributed on a machine that the component wasn't installed on using our installer. This ofcourse isn't the case in our Full (licensed) version.
Regards,
Damba
Re: VB.NET sample ?
I buyed the full version this afternoon but the component don't work when I do not install your setup...
Thanks for help
Re: VB.NET sample ?
Bertrand,
Did you uninstall demo version and install the Full version (it asks for LicenseKey during the installation process)? Also, after that, you should re-import the component into the project.
If you are using the COM (.dll) of the component you should set LicenseKey property before calling the Connect method.
Regards,
Damba
Re: VB.NET sample ?
Did you uninstall demo version and install the Full version (it asks for LicenseKey during the installation process)? Also, after that, you should re-import the component into the project.
Yes !
If you are using the COM (.dll) of the component you should set LicenseKey property before calling the Connect method.
No !
But it doesn't work...
Ssh1.LicenceKey = XXXX-XXXX-XXXX-XXX
with Dim WithEvents Ssh1 As New wodSSHTunnelLib.wodTunnel
Sorry to be stupid [:smile:]
Re: VB.NET sample ?
Bertrand,
Please try something like this:
Ssh1.LicenseKey = .....
Ssh1.Connect()
Also, you need to register wodSSHTunnel.dll using RegSvr32. Can you try that?
Regards,
Damba
Re: VB.NET sample ?
Ssh1.LicenseKey = .....
That's what I do but I get the following error :
public member 'LicenceKey' not found
Also, you need to register wodSSHTunnel.dll using RegSvr32. Can you try >that?
I'll try that...
Re: VB.NET sample ?
Bertrand,
The error you see is because you are still using Demo version. The Demo doesn't have LicenseKey property, and that is what is causing the problem.
When you installed the full version, did it ask you to enter license key during the installation?
Can you check what does your Version property return?
Regards,
Damba
Re: VB.NET sample ?
Yes, I have been askeen a license key during the installation.
The version return the bleu form and I get License key and the note : Licensed version of the component. Roality free
Re: VB.NET sample ?
Bertrand,
When distributing the component what exactly do you do? Do you just copy the files from the bin folder of your project?
You need to distribute the wodTunnel.dll or wodTunnel.ocx (depending on the version of the component you are using) and register them on the distribution machine.
Regards,
Damba
Re: VB.NET sample ?
When distributing the component what exactly do you do? Do you just copy the files from the bin folder of your project?
Yes !
You need to distribute the wodTunnel.dll or wodTunnel.ocx (depending on the version of the component you are using) and register them on the distribution machine.
Ok, understand ! thanks !
I also use a FTPSSH component and I use the LicenseKey property. I can't use it with ssh tunnel so can't distribute it... ;-(
However, thanks a lot for your help !
Re: VB.NET sample ?
Bertrand,
The things I suggested simply have to work. The files that VB.Net creates in bin folder aren't enough for the component to work on other machines. That's why it's required to distribute the .dll or .ocx files, and registering them on the distribution machine.
I would also suggest that you uninstall the component, delete bin and obj folders from your project folders, then install component, re-import the reference to the component and re-build the project.
Then on distribution machine, just run RegSvr32 on the component file.
Can you please try those things?
Regards,
Damba