Link to home
Start Free TrialLog in
Avatar of Rob4077
Rob4077Flag for Australia

asked on

What does error -2146697208 from URLDownloadToFile(0, URL, LocalFilename, 0, 0) mean?

Can anyone tell me what the meaning of the return code  -2146697208 when I run URLDownloadToFile(0, URL, LocalFilename, 0, 0) means?
ASKER CERTIFIED SOLUTION
Avatar of thenelson
thenelson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rob4077

ASKER

Thanks for the answer. Trying your suggestion is going to be tricky because it happened once at one of 90 installations running the code. I will see if it keeps occuring at this location and pursue it from there.
Avatar of thenelson
thenelson

Try logging the error and have the database email it to you. See: www.thenelson.name/#LogErrorsDemo

You're welcome.  Glad to help and thank you very much for the points with "A" grade!

Happy computing!

Nelson
Avatar of Rob4077

ASKER

Hi Nelson. Thanks for the link to the error routine but I already have one that is similar to yours. The problem I experienced here comes from the Return code when I use the following code. I guess what you're suggesting is that instead of using a return code I take it away and let the code go into error and see what that error is.
lRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)