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

Can't get InternetConnect to work with new wininet.

0 views
Skip to first unread message

plouis...@my-deja.com

unread,
Apr 3, 2000, 3:00:00 AM4/3/00
to
Hi,

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.

Juan B. Rodriguez

unread,
Apr 4, 2000, 3:00:00 AM4/4/00
to
In article <8caqht$lbn$1...@nnrp1.deja.com>, plouis...@my-deja.com
says...

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

plouis...@my-deja.com

unread,
Apr 11, 2000, 3:00:00 AM4/11/00
to
My PB program now works with both versions of WinInet.
Thanks for your help.

Peter Louis

In article <MPG.1353e2d73...@msnews.microsoft.com>,

0 new messages