Hi Fabio,
>Hi,
>
>How can I verify if an Internet Dial-up connection is active and if it's not, how can I connect automatically? I have a VFP application which needs to download some files hosted in a Web site and I wouldn't like to bother the user (or to count on the user to do the connection at all).
>I was thinking on WinInet, but I don't know if it's the right direction. Is there any sort of information on this subject?
Download Robert Abrham's FTP class in the files section. I believe it's File #
9442. It's basically just a wrapper class for the WinInet functions. Using this in conjunction with the MSDN help on each function call should get you going in the direction you wish to go.
As far as making connection unapparent to the user, if the user is using dial up networking and a connection isnt active, when DUN is invoked, I believe the user will have to enter their password if it isnt stored, so there may still be minor user intervention required. But that's dependant on how their PC is configured.
HTH,
Jon