Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any free SFTP gizmos out there?
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01344675
Message ID:
01349369
Views:
27
I am trying to make a simple post here, but I keep getting an anoying popup telling me which tags are allowed in the site, and I am not using any tags at all in my post.

After trying 5 times, I give up, I have very little patience.

EDIT: I FOUND THE PROBLEM TAG


I have updated the docs, still not finished, but almost there. I have updated the class, uploaded the whole package. Now the class is contained in a vcx.

http://www.ctl32.com.ar/ctl32_curl.asp

upload from string/file implemented
download to string/file implemented
lots of libcurl settings added as class properties

What is not working yet is the CURLOPT_PROGRESSFUNCTION callback:

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTPROGRESSFUNCTION

The class has working callbacks implemented with vfp2c32.fll for:

CURLOPT_DEBUGFUNCTION
CURLOPT_WRITEFUNCTION
CURLOPT_READFUNCTION
CURLOPT_SEEKFUNCTION

But the progresscallback raises a dll exception as soon as curl_easy_perform is called. It seems the callback is raised once, and then yo uget the exception. I have not been able to find where the problem is.

Maybe someone with a little bit more knowledge of C can look this up. The working callback functions are pretty clear with the parameters, but not this one:

"Function pointer that should match the curl_progress_callback prototype found in
<curl/curl.h>
" So i dig up curl.h, and I find this:

typedef int (*curl_progress_callback) (void *clientp,
double dltotal,
double dlnow,
double ultotal,
double ulnow);

Now I dont know what those C doubles translate to in VFP, I have found code like this:

Curl_ProgressFunction(clientp, dltotal_l, dltotal_h, dlnow_l, dlnow_h, ultotal_l, ultotal_h, ulnow_l, ulnow_h)

And the vfp2c32.fll intellisense indicates I can use DOUBLE; INTEGER; etc.

Anyone can help with this problem?

Carlos Alloatti
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform