I've been using 5.2 for a while and I paid for the upgrades for 6 and 7. Didn't need to change until now. I read the prior post about this error. The wconnect.h is in the correct path using ? fullpath('wconnect.h'). If I get to the error and then define each error in the command window it will continue with no error and ftp to the site. These are the 3 fields that somehow are not defining:
FTP_CONNECT_PASSIVE = 134217728 INTERNET_OPTION_RECEIVE_TIMEOUT = 6 INTERNET_OPTION_SEND_TIMEOUT = 5
Please give some guidance.
Ricky

Rick,
If fully compiled to the exe it works fine. I would like to be able to run it inside of Fox Pro so i can debug it.
Ricky
Make sure you:
- Have updated
wconnect.h
- Your FoxPro path doesn't point at some other location where an old version exists
- The code file where this is happening in has
#include wconnect.h
in it (ie. your code)
The latter applies only if it's your code that's using these values. Web Connection's internal function will have the right include in place, but it's pathless, so it depends on the FoxPro path and that the right wconnect.h
is found.
FWIW, those keys are old and should exist even in old versions, so my guess this isn't a version mismatch but wconnect.h
not being found.
+++ Rick ---
Rick,
I even put the wconnect file in the programs default folder. Still the same error. The SMTP stuff runs fine.
See code below.
Ricky
Public as400Handle,vcount,vtotorders
#INCLUDE R:\programs\artist_crafts\WCONNECT.h
SET path to \\Sls2003\c\ricky\programs\xfrx\version8\xfrx\, \\Sls2003\c\ricky\programs\xfrx\version8\xfrx\xfrxlib;
, r:\programs\wwipstuff731, r:\programs\wwipstuff731\classes
SET CLASSLIB TO xfrxlib ADDITIVE
*#DEFINE VFP5
*#DEFINE VFP6
*#DEFINE VFP8
#DEFINE VFP9
#INCLUDE \\Sls2003\c\ricky\programs\xfrx\version8\xfrx\xFRX.FXP
DO r:\programs\wwipstuff731\classes\wwftp
DO r:\programs\wwipstuff731\classes\wwutils
DO r:\programs\wwipstuff731\classes\wwsmtp
emailobj = createobject("wwSmtp")
SET DEFAULT TO R:\programs\artist_crafts
oFtp=CREATEOBJECT("wwFTP")
oFTP.FTPConnect("ftp.spscommerce.com","slsartsinv","ekssQNIw960v")
*oFTP.FTPConnect("ftp.slsarts.com","ricky","wynt0n#")
DIMENSION laFiles[1,4]
lnResult = oFTP.aFTPDir(@laFiles,"/testout/*.*")
*lnResult = oFTP.aFTPDir(@laFiles,"/*.*")
FOR x=1 to lnResult
? laFiles[x,1],laFiles[x,2],laFiles[x,3], laFiles[x,4]
ENDFOR
oFTP.FTPClose()
You should set up your path the way you think it should be then do:
? FULLPATH("wconnect.h")
and see what you get. Make sure the file shows and exists at the location and contains the relevant #define
commands.
My guess - you either have your path wrong or you're using an old wconnect.h
. IAC, use MODI COMM FULLPATH('wconnect.h')
should open the file and that file needs to be the right file that includes those defines.
+++ Rick ---
