Hi Craigh,
Hmm...
- How pameters (values) ypu send to method OpenInternet()?
- Maybe is internet offline, Try use method GoOnline() after calling method OpenInternet()
MartinJ
>Martin,
>
>Here is a piece of code that Im using. Also, I dont have the error number but here's the message when getting the error during connection. I can connect via FTP:// with the browser.
>
>These code does obtain an number, no error here.
>
THIS.nInet_Handle = InternetOpen((THIS.cAgent), INTERNET_OPEN_TYPE_DIRECT, cNULL, cNULL, 0)
>
>But this following line does cause an error!
>
>
lnConnect_Handle = InternetConnect(THIS.nInet_Handle, (THIS.cIPAddress), VAL(lcPort), ;
>(THIS.cUserName), (THIS.cPassword), INTERNET_SERVICE_FTP, 0, 0).
>
> With this message:ERROR_INTERNET_CANNOT_CONNECT
>
>
>I will try to see if I can get the number. Martin, all you help is appreciated.
>Craig