cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Using libCURL in a IE toolbar DLL

From: <RBramante_at_on.com>
Date: Thu, 5 Dec 2002 12:51:18 -0500

From the doc:

NOTE: If you're using libcurl as a win32 DLL, you MUST use the
CURLOPT_WRITEFUNCTION if you set this option or you will experience
crashes.

Has to do with the whole FILE* not being valid to pass accross dll/process
boundaries issues.....

                                                                                                                                      
                      "charles"
                      <sanders-consulting_at_attbi.com To: <curl-library_at_lists.sourceforge.net>
> cc:
                      Sent by: Subject: Using libCURL in a IE toolbar DLL
                      curl-library-admin_at_lists.sour
                      ceforge.net
                                                                                                                                      
                                                                                                                                      
                      12/05/2002 02:28 PM
                      Please respond to
                      curl-library
                                                                                                                                      
                                                                                                                                      

Hello all,

Im using libCURL to query a website to see if new forum posts and private
messages exist for a certain user, and if so enabling a toolbar button.
The problem is its crashing when I use

FILE* f = fopen("C://foo.txt","w");
curl_easy_setopt(curl,CURLOPT_FILE ,f);

It actually crashes on the "setopt" call.  What gives ?  All i really want
to do is dump the info into a string to search it, any suggestions on how
to proceed ?

Im using libCURL 7.10.2, MSVC++ 6.0, and ATL and WTL to create the
Toolbar, which resides in a DLL and gets called upon IE startup.

Thanks,
Charles

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Received on 2002-12-05