West Wind Internet and Client Tools
wwFTP Error - Constants Not Defined
Gravatar is a globally recognized avatar based on your email address. wwFTP Error - Constants Not Defined
  Marvin Masson
  All
  Sep 3, 2020 @ 03:46pm

I recently upgraded a project to WW Client 6.22 and run into an error. On FTPConnect, I get an error "Variable 'FTP_CONNECT_PASSIVE' is not found. Appears the constants are not declared.

Here's the code... SET PATH to "wwclient 6.22\;wwclient 6.22\CLASSES\" LOCAL o DO wwftp o=CREATE("wwFTP") o.FTPConnect("FTPSITE","USERNAME","PASSWORD")

I tried adding #INCLUDE wconnect.h at the front of the code but NO go. When I examine wwftp.prg, I can see the 3rd line is "#INCLUDE wconnect.h". So why is this not working?

Thanks!

Gravatar is a globally recognized avatar based on your email address. re: wwFTP Error - Constants Not Defined
  Rick Strahl
  Marvin Masson
  Sep 4, 2020 @ 01:08pm

Yup you're missing wconnect.h...

Make sure wconnect.h is in your path (check with ? fullpath('wconnect.h') and check that the file lives there. Then recompile the prg explicitly if you had to move the file.

+++ Rick ---

© 1996-2020