Loading docs/FAQ +14 −15 Original line number Diff line number Diff line Loading @@ -1180,7 +1180,6 @@ FAQ MSVC (debug): libcurld.lib libcurld_imp.lib Borland: libcurl.lib libcurl_imp.lib 5.8 libcurl.so.X: open failed: No such file or directory This is an error message you might get when you try to run a program linked Loading Loading @@ -1280,14 +1279,14 @@ FAQ member function that is passed a pointer to the class: // f is the pointer to your object. static YourClass::staticFunction(void *buffer, size_t sz, size_t n, void *f) static YourClass::func(void *buffer, size_t sz, size_t n, void *f) { // Call non-static member function. static_cast<YourClass*>(f)->nonStaticFunction(); } // This is how you pass pointer to the static function: curl_easy_setopt(hcurl, CURLOPT_WRITEFUNCTION, YourClass:staticFunction); curl_easy_setopt(hcurl, CURLOPT_WRITEFUNCTION, YourClass:func); curl_easy_setopt(hcurl, CURLOPT_WRITEDATA, this); 5.15 How do I get an FTP directory listing? Loading Loading
docs/FAQ +14 −15 Original line number Diff line number Diff line Loading @@ -1180,7 +1180,6 @@ FAQ MSVC (debug): libcurld.lib libcurld_imp.lib Borland: libcurl.lib libcurl_imp.lib 5.8 libcurl.so.X: open failed: No such file or directory This is an error message you might get when you try to run a program linked Loading Loading @@ -1280,14 +1279,14 @@ FAQ member function that is passed a pointer to the class: // f is the pointer to your object. static YourClass::staticFunction(void *buffer, size_t sz, size_t n, void *f) static YourClass::func(void *buffer, size_t sz, size_t n, void *f) { // Call non-static member function. static_cast<YourClass*>(f)->nonStaticFunction(); } // This is how you pass pointer to the static function: curl_easy_setopt(hcurl, CURLOPT_WRITEFUNCTION, YourClass:staticFunction); curl_easy_setopt(hcurl, CURLOPT_WRITEFUNCTION, YourClass:func); curl_easy_setopt(hcurl, CURLOPT_WRITEDATA, this); 5.15 How do I get an FTP directory listing? Loading