| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curlpp mailing list Archives
Re: [cURLpp] curlpp problem
From: Jean-Philippe Barrette-LaPierre <jean-philippe.barrette-lapierre_at_savoirfairelinux.com>
Date: Sat, 31 Dec 2005 13:57:12 -0500
On December 29, 2005 11:53 pm, Jacky Luk wrote:
No, you simply don't have the right function signature.
> size_t write_data1 (void *buf, size_t size, size_t nmemb, FILE *FileStream)
in fact, if you check in Types.hpp you'll see that WriteFunctionFunctor is
typedef utilspp::Functor<
Meaning that the function returns a size_t, and the parameters are this:
so, you need to provide a function that respect that signature. Your problem
size_t (char *, size_t, size_t, void *)
the last pointer is provided for the library's user. You can pass some
So, you can use the old way to do it, but it won't be exception safe. I did an
-- Jean-Philippe Barrette-LaPierre Coder in wonderland (try lisp and you'll see the light)
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info