Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Procedure not found msg when hit error in wwFTP class
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
West Wind Web Connection
Title:
Procedure not found msg when hit error in wwFTP class
Miscellaneous
Thread ID:
00713086
Message ID:
00713086
Views:
94
Hi,

I would like to use the wwFTP class to download files. I dropped the wwFTP class on my form and called it oWwFTP. I then put the following code in the click method of a command button
thisform.oWwFTP.cFTPServer = '159.3.99.113'
thisform.oWwFTP.cUserName = 'user_name'
thisform.oWwFTP.cPassword = 'wrong_password'
thisform.oWwFTP.cFTPSource = 'LEWTAN.FTPSUB'
thisform.oWwFTP.cFTPTarget = 'c:\temp\lewtan.ftpsub'
IF thisform.oWwFTP.FTPGetFile() # 0
lcErrorMsg = thisform.oWwFTP.cErrorMsg
=MESSAGEBOX(lcErrorMsg )
ENDIF

I included the following in the form load:
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 wwHTTP ADDITIVE && Required by wwXML
SET PROCEDURE TO WWPOP3 ADDIT

If I deliberately provide an invalid password, I get back the following error when I try to run the form:
Win32API - the specified procedure could not be found

The file transfer runs fine if I give the correct password.

My apologies if others have asked the same question. I could not find other references to "Win32API" in the threads.

I was able to replicate this on another PC so I am sure it is some foolish newbie error on my part. Any suggestions where I have gone wrong?

Thanks!

Vern
Vern
Next
Reply
Map
View

Click here to load this message in the networking platform