Page 1 of 1

Can't get sample code to run

Posted: Thu Feb 26, 2015 8:31 pm
by donj91711
I'm trying to run the SmartFTP Library sample code under:
C:\Program Files\SmartFTP FTP Library\Samples\SFTP\VB6
 
It's a very simple program. The first line in the Main routine is:
Set objGlobal = CreateObject("sfFTPLib.Global")
 
When I run that line it gets an error:
Automation Error - The specified procedure could not be found
 
I have the SmartFTP FTP Library 4.0 Type Library installed and referenced in Project/References
It appears to have installed properly.
I am running on XP SP3
 
Any thoughts?
 
 

Re: Can't get sample code to run

Posted: Thu Feb 26, 2015 9:31 pm
by mb
If you can use Visual Basic .NET instead of VB6

Re: Can't get sample code to run

Posted: Thu Feb 26, 2015 9:40 pm
by donj91711
mb wrote: Use VB.NET instead of VB6
I'm not quite sure why SmartFTP would advertise VB6 with their sample code if it doesn't work with VB6
 
I have seven different programs that automate FTP processing, all using SmartFTP in VB6. They have been live and working fine for years, up until the time we wanted to do right by SmartFTP and renew our license. After all, we get a lot of use out of their product so it seemed like the right thing to do. What thanks do we get by doing the right thing? The new version no longer works with VB6.
 
No good deed goes unpunished.
 
I'll be asking for a refund and looking for a new product.

Re: Can't get sample code to run

Posted: Fri Feb 27, 2015 12:46 am
by mb
We have verified that both VB6 samples (FTP and SFTP) in the latest version are working fine.
 
Please install the latest version of the FTP Library from here:
https://www.smartftp.com/ftplib/download
 
Version 4.0 of the FTP Library requires Windows Vista or higher. Version 3.0 which works on Windows XP SP3 is available on request (contact support).