FoxPro and .NET Interop
Secure FTP SFTP - .NETBRIDGE
Gravatar is a globally recognized avatar based on your email address. Secure FTP SFTP - .NETBRIDGE
  Edward K. Marois
  All
  Dec 7, 2018 @ 09:36am

Dear Sirs:

This is Edward K. Marois from Realty Information Systems writing.

I have been tasked with getting WinSCP/SFTP/WinSCPnet.dll up and running.

I see on your web site that SFTP is going to be avaliable in the next version of the .NETBRIDGE

Do you have any idea when this will be avaliable

or

any suggetion how to reach WinSCP from Visual FoxPro.

Gravatar is a globally recognized avatar based on your email address. re: Secure FTP SFTP - .NETBRIDGE
  Rick Strahl
  Edward K. Marois
  Dec 7, 2018 @ 12:20pm

It's part of West Wind Client Tools...

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Secure FTP SFTP - .NETBRIDGE
  Edward K. Marois
  Edward K. Marois
  Dec 10, 2018 @ 11:14am

Dear Rick:

I downloaded the latest version of the .DOTNETBIRIDGE and attempted to update all the files to the best of my ability

I added the code to my program

PROCEDURE NCB_WINSC PARAMETERS mNONE AS String

#INCLUDE WCONNECT.h

SET PROCEDURE TO wwUtils ADDITIVE ! SET PROCEDURE TO wwUtils ADDITIVE

SET PROCEDURE TO wwEval ADDITIVE

SET PROCEDURE TO CodeBlockClass ADDITIVE

SET CLASSLIB TO wwIPStuff ADDITIVE

SET CLASSLIB TO wwXML ADDITIVE

SET PROCEDURE TO wwAPI ADDITIVE

SET PROCEDURE TO wwHTTP ADDITIVE SET PROCEDURE TO wwFtp ADditive

loFtp = CREATEOBJECT("wwSftp") loFtp.nFtpPort = 23

lcHost = "127.0.0.1" lnPort = 23 lcUsername = "tester" lcPassword = "password"

And it crashes with 'Class Definition WWSFTP is not found'

I did have to find some of the above programs and .VCX and .VCT files from older versions.

The documentation on the web is clearly covering all the features, what are the minimum files needed to get this running and what am I doing work ???

Gravatar is a globally recognized avatar based on your email address. re: Secure FTP SFTP - .NETBRIDGE
  Edward K. Marois
  Edward K. Marois
  Dec 10, 2018 @ 12:00pm

Dear Rick:

I added in DO wwClient and it started working

Please ignore last message.

Your the best ...

Gravatar is a globally recognized avatar based on your email address. re: Secure FTP SFTP - .NETBRIDGE
  Edward K. Marois
  Edward K. Marois
  Dec 10, 2018 @ 12:32pm

Dear Rick:

I am getting close

loFtp = CREATEOBJECT("wwSftp")

is run and the bellow message appears

Please advise ...

Gravatar is a globally recognized avatar based on your email address. re: Secure FTP SFTP - .NETBRIDGE
  Edward K. Marois
  Edward K. Marois
  Dec 11, 2018 @ 06:06am

Dear Rick:

I down loaded the demo for the latest update and distuibuted the .DLLs and .VCX to the bet of my ability I added in the bellow code and got the above error

Do you have any suggestions ???

do wwDotNetBridge LOCAL loBridge as wwDotNetBridge loBridge = CreateObject("wwDotNetBridge","V4")

DO wwClient

#INCLUDE WCONNECT.h

SET PROCEDURE TO wwUtils ADDITIVE ! SET PROCEDURE TO wwUtils ADDITIVE

SET PROCEDURE TO wwEval ADDITIVE

SET PROCEDURE TO CodeBlockClass ADDITIVE

SET CLASSLIB TO wwIPStuff ADDITIVE

  • SET CLASSLIB TO wwXML ADDITIVE

SET PROCEDURE TO wwAPI ADDITIVE

SET PROCEDURE TO wwHTTP ADDITIVE SET PROCEDURE TO wwFtp ADditive

! =MESSAGEBOX("1") loFtp = CREATEOBJECT("wwSftp")

Gravatar is a globally recognized avatar based on your email address. re: Secure FTP SFTP - .NETBRIDGE
  Rick Strahl
  Edward K. Marois
  Dec 11, 2018 @ 12:37pm

You need to deploy the renci.sshNet.dll along with wwDotnetBridge.dll. In fact, you should deploy all the DLLs from the Web Connection folder and update them every time you update your Web Connection version.

build.bat in the can create a build directory with all the files you typically need.

+++ Rick ---

© 1996-2024