I wrote an ftp program using Powerbuilder. It
works with an older version of wininet.dll (the
one dated May 1998) but not with a newer one
(dated March 1999, I got it by installing Office
2000/Outlook 2000/Internet Explorer 5).
This is how InternetConnect is declared in
PowerBuilder:
***********************
Function ulong InternetConnect (ulong hInternet,
ref string lpszServerName, ulong nServerPort, ref
string lpszUserName, ref string lpszPassword,
ulong dwService, ulong dwFlags, ref ulong
dwContext) Library "wininet.dll" Alias
for "InternetConnectA"
***********************
And this is how I use InternetConnect:
***********************
ll_ConnectHandle = inv_wininet.InternetConnect
(ll_InternetHandle, is_ServerName,
inv_wininet.INTERNET_DEFAULT_FTP_PORT,
is_Username, is_Password,
inv_wininet.INTERNET_SERVICE_FTP, ll_FtpFlags,
ll_FtpContext)
***********************
ll_FtpFlags is set to 0 and ll_FtpContext is set
to NULL. Instead of getting a valid
ll_ConnectHandle, I get 0 instead.
Do you have any idea why it does not work with
the newer WinInet?
Thanks for your time.
Peter Louis
Sent via Deja.com http://www.deja.com/
Before you buy.
Check this page for a Wininet Wrapper Object in Powerbuilder. It's
written in 6.0, but works just fine with 7.0
http://rkiesler.home.mindspring.com/
--
Saludos,
Juan B. Rodriguez
Arroyo Seco Software, Panama
Peter Louis
In article <MPG.1353e2d73...@msnews.microsoft.com>,