DECLARE INTEGER InternetOpen in WinINet.dll ; STRING cAgente, INTEGER nType, STRING cProxy, STRING cBypass, INTEGER nFlags DECLARE INTEGER InternetCloseHandle in WinINet.dll ; INTEGER nInternetHandle DECLARE INTEGER InternetConnect in WinINet.dll ; INTEGER nInternetSession, STRING cServer, INTEGER nPort, ; STRING cUserName, STRING cPassword, INTEGER nService, INTEGER nFlags, INTEGER nContext DECLARE INTEGER FtpSetCurrentDirectory IN WinINet.dll ; INTEGER nFtpSession, STRING cDirectory lnSession = InternetOpen("Wininet",0,.NULL.,.NULL.,0) * set as appropriate lcServer = "myserver" lcUserName = "anonymous" lcPassword = "someone@somewhere.com" lcDir = "/pub" IF lnSession!=0 lnFTPSession = InternetConnect(lnSession,lcServer,21,lcUserName,lcPassword,1,0x08000000,0) IF lnFTPSession!=0 IF FtpSetCurrentDirectory(lnFTPSession,lcDir)!=0 WAIT WINDOW "Successfully CD in remote host" NOCLEAR NOWAIT ENDIF InternetCloseHandle(lnFTPSession) ENDIF InternetCloseHandle(lnSession) ENDIF>I am trying to use the FtpSetCurrentDirectory method in the Wininet.dll. I am successful in getting an internet session(InternetOpen) and an FTP Session(InternetConnect). When I try to change directories using the FtpSetCurrentDirectory method I get the following error: