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 :/
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 :/