cURL / Mailing Lists / curl-library / Single Mail



From: Bjorn Reese <>
Date: Wed, 19 Feb 2003 17:51:15 +0000

Wang Zhen wrote:

> --- Before ---
> curl_easy_setopt(pURL, CURLOPT_URL,
> pNextSE->GetQueryString(theRobber.m_strKeyWord));
> --- After ---
> CString strQueryString =
> pNextSE->GetQueryString(theRobber.m_strKeyWord);
> curl_easy_setopt(pURL, CURLOPT_URL, strQueryString);
> --- End ---
> But I do not know the reasons why it works after changing.

I suspect that in the Before case the third argument to
curl_easy_setopt() is not automatically converted into
a character pointer, but in the After case it is. This is
possibly because in the Before case the compiler has to
generate a temporary variable for the return value of

This email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
Received on 2003-02-19