Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a callback function in URLDownloadToFile

Status
Not open for further replies.

Fortu

Programmer
Apr 13, 2010
3
DE
Hi guys,

we are using the winapi function "URLDownloadToFile" to download a file from a certain URL. The problem is: Some customers have connection problems causing the program to freeze since URLDownloadToFile tries to connect for a couple of minutes.

I know that you can use a callback function of URLDownloadToFile to check for a timeout you provide. But my problem is: How to implement a callback funtion? Especially since I cannot provide a pointer to a clarion function, but to "the IBindStatusCallback interface" (quote from ).

Now I dunno how to continue. Every example I found uses C to implement the callback function. But I cannot "export" it to the Clarion programming language.

Hope someone can help me :/
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top