Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

FTP implementation for powerbuilder 10

1,267 views
Skip to first unread message

Héctor Garcia Peris

unread,
Jan 17, 2006, 7:35:16 AM1/17/06
to
Hello,

I'm looking for an FTP implementation for PB 10. I have found an ActiveX
named EZFTP from COOL.STF (http://www.coolstf.com/ax/EzFTPStd.zip) and
one code downloaded from http://powerbuilder.codexchange.sybase.com, but
is a code made for using in PB 5, and doesn't work in PB 10

Anyone uses any other implementation that works in PB 10?

Thanks.

Roland Smith

unread,
Jan 17, 2006, 9:41:56 AM1/17/06
to
On my website http://www.topwizprogramming.com/freecode.html is an example
called FTPEdit. The zipfile has a PB8 and PB10 example that does FTP using
Win API function calls.

Roland


"Héctor Garcia Peris" <hector...@ivie.es> wrote in message
news:43cce18e@forums-2-dub...

Raynald M.

unread,
Jan 17, 2006, 9:57:34 AM1/17/06
to
The FTP object from CodeExchange work well in PB10

Héctor Garcia Peris

unread,
Jan 17, 2006, 10:51:52 AM1/17/06
to

It doesn't work for me. After migration I get the following "Information
Errors":

2006/01/16 18:48:32 SOCKETS.PBL(u_winsock).2: Information C0207: Append
ALIAS FOR clause to external function 'wsastartup' for backward
compatibility.
2006/01/16 18:48:32 SOCKETS.PBL(u_winsock).7: Information C0207: Append
ALIAS FOR clause to external function 'getsockname' for backward
compatibility.

... and in some other functions.

The problem is when I make the open connection I get:

Connecting to host diskserver.ivie.es (193.8217.61.247 port 21)

Obviously the IP address is wrong, it seems as if it doesn't get the
address correctly.

I don't know what happens.

Roland Smith

unread,
Jan 17, 2006, 7:12:22 PM1/17/06
to Héctor Garcia Peris
Pb10 is Unicode and PB9 is Ansi. This can cause problems with API calls.
Try the example on my website.

Héctor Garcia Peris

unread,
Jan 18, 2006, 2:57:23 AM1/18/06
to
Roland Smith wrote:
> Pb10 is Unicode and PB9 is Ansi. This can cause problems with API calls.
> Try the example on my website.
>

I have tried your code and works fine. But I have seen that ftp save is
not implemented, I really want to send files that is just what is not
implemented in your code.

Roland Smith

unread,
Jan 18, 2006, 8:14:00 AM1/18/06
to
True, the example window doesn't have Save coded but the n_wininet object
does have the of_ftp_putfile function. I am using this object in one of our
production apps to transfer a file to our mainframe. Works great!


"Héctor Garcia Peris" <hector...@ivie.es> wrote in message

news:43cdf1e7$1@forums-2-dub...

Héctor Garcia Peris

unread,
Jan 18, 2006, 8:19:04 AM1/18/06
to

Is there any link where I get the referece of the n_wininet user object?
There has a lot of functionality but I can't find documentation about
the object.

Thanks.

Roland Smith

unread,
Jan 18, 2006, 11:49:41 AM1/18/06
to

Vikas J

unread,
Jan 18, 2006, 5:24:40 PM1/18/06
to
Yes , PB10 is unicode
But do we need to enable or disable it .
OR
do we understand what API we call should be modified in PB10 with the some
prefix standards defined.
Thanks , Vikas
"Roland Smith" <top...@adelphia.net> wrote in message
news:43CD84E...@adelphia.net...

Héctor Garcia Peris

unread,
Jan 19, 2006, 8:13:24 AM1/19/06
to

I have the following code using an n_wininet user object (gn_ftp):

if gn_ftp.of_get_session() = 0 then
ls_result = gn_ftp.of_ftp_internetconnect("server", "user", "pass")
if ls_result <> "" then
MessageBox("Error",ls_result,exclamation!,ok!)
end if
end if
ls_result = gn_ftp.of_ftp_getdirectory(ls_dir)
ls_result = gn_ftp.of_ftp_putfile(local_file, ls_dir + "/" + ls_file, false)
if ls_result <> "" then
MessageBox("Error",ls_result,exclamation!,ok!)
else
MessageBox("OK","File sent!",Information!,OK!)
end if

The function says that the file is sent, but in the FTP server I can't
see the file. What is wrong in my code?

Héctor Garcia Peris

unread,
Jan 19, 2006, 8:16:31 AM1/19/06
to

Sorry, the code works fine.

Thank you all.

0 new messages