Welcome! Log In Create A New Profile

Advanced

WINDEV XIV, FTP & IE version

Posted by Paulo Oliveira 
Paulo Oliveira
WINDEV XIV, FTP & IE version
April 30, 2009 04:14PM
With WINDEV XI the FTP* commands don't work if the pc have IE7, if the pc have IE6 or IE8 it works.

Anyone test the FTP* commands with WINDEV XIV ?
If so which is the IE version installed ?
Paulo Oliveira
Re: WINDEV XIV, FTP & IE version-HELP PLEASE
April 30, 2009 07:07PM
I have until Monday to make a proposal for a client, by then I have to know what requirements are needed.
If someone has WD XIV and IE7 and don't mind to run this small code and tell me what is the result.
PS: The file HELLO.TXT only have the word HELLO as content.

CODE:

CON_FTP is int
wres_txt is string
wres is string
CON_FTP=FTPConnect("193.126.230.225","wx_tst" ,"wx_tst")
IF CON_FTP = -1 THEN
Error("FTP-CON",ErrorInfo())
RETURN
END
IF NOT FTPCommand(CON_FTP,"retr "+"HELLO.TXT",wres,wres_txt,FTPASCIIMode) THEN
Error("FTP-RETR",wres+" "+ErrorInfo())
RETURN
END
Info(wres_txt)
FTPDisconnect(CON_FTP)

Piet van Zanten
Re: WINDEV XIV, FTP & IE version-HELP PLEASE
April 30, 2009 10:39PM
Hi Paolo,

Tried this with IE7. Both in WD14 and WD 12 I get an error on the FTPCommand line. (see below)
If I change to binary mode no error, but also no data. Why do you think IE7 has anything to do with this?

Regards,
Piet

Error in Global Procedure New_Procedure process, line 23..
Unexpected system error.
If this error systematically occurs in the same conditions, contact PC SOFT Hot Line and specify:
 - the error circumstances,
 - a window, a project or the code lines used to replicate the problem,
 - the details below.

Détails techniques :

Module : MSVCRT.dll
Adresse de base : 77BE0000
Erreur système : Access violation (GPF)
EIP = 77C12A16
OS : Windows XP ou .NET Service Pack 3(5.1.2600)

Technical Information

etc.



Andres Sanchez
Re: WINDEV XIV, FTP & IE version
May 01, 2009 12:44AM
Paulo:

I run your code with Windev 12 and IE7, and also get the same error but if I change the FTPCommand to an FTPGet, the file is transferred fine.

CON_FTP is int
wres_txt is string
wres is string
CON_FTP=FTPConnect("193.126.230.225","wx_tst" ,"wx_tst")
IF CON_FTP = -1 THEN
Error("FTP-CON",ErrorInfo())
RETURN
END
IF NOT FTPGet(CON_FTP,"HELLO.TXT","HELLO.TXT") THEN
Error("FTP-RETR",wres+" "+ErrorInfo())
RETURN
END
Info(wres_txt)
FTPDisconnect(CON_FTP)


Hope it helps

Andres Sanchez
Paulo Oliveira
Re: WINDEV XIV, FTP & IE version-THANKS
May 04, 2009 12:22PM
Answer from PCOSFT to this problem in 2007/10/19:
Hi,
Sadly the problem is in IE7 and there is no easy way to workaround the problem. Most of WinDev FTP commands would have to be rewritten from scratch.


This is the major problem of PCSOFT, bug reported are rarely fixed.
I'm going to put one requirement in our proposal that all the pc must have IE8.

Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: