Creating an SFTP utility, and I can't even get started. No doubt it's me, but all assistance is appreciated! From a barebones VFP 9.0:
SET PATH TO [L:\WEBCONNECT610\CLASSES\;\\D2G.CORP\SHARED\LEGACY\FHCODE\PROGRAM\;\\D2G.CORP\SHARED\LEGACY\SOURCE\LB\PRGS\;]
DO wwHttp
DO l:\webconnect610\classes\wwsftp.prg
loFtp = CREATEOBJECT("wwSftp")
That's where I get my error Line 73 of wwSftp.prg, in the LOAD: this.oBridge = GetwwDotnetBridge()
I get the following error: File 'getwwdotnetbridge.prg' does not exist.
I'm obviously missing the obvious.
You need to add:
do wwdotnetbridge
to load the wwDotnetBridge library.
FWIW, that's a bug - that should be in the header of wwsftp and fire when you DO wwSFTP
. I've added added for the next version.
+++ Rick ---
Thanks - progress, I think. Now getting:
Unable to load wwDotNetBridge: Unable to load Clr Instance. 0x80131515:
SET PATH TO [L:\WebConnect610\classes;L:\WebConnect610\]
do wwdotnetbridge
SET PROCEDURE TO wwDotNetBridge ADDITIVE
SET STEP ON
SET PROCEDURE TO wwSftp.prg ADDITIVE
loFtp = CREATEOBJECT("wwSftp") && ERROR on the init!!
loFtp.nFtpPort = 23
lcHost = "127.0.0.1"
Thanks. Windows 8.1 pro doesn't have the "Unblock" button, but copying the .dll to a local folder solved the problem (I was running from the network before).
Well if it's a network file you can't unblock because that's a different security scenario.
The right way to do this is to add the .config
file to your vfp9.exe
and your application's EXE. Once you do that you can run off the network drive.
+++ Rick ---
I'm sure that makes perfect sense, but what ```foxpro .config
file?