cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

[cURLpp] Compilator error with WRITEDATA

From: Jacek Jablonski <yacek87_at_gmail.com>
Date: Sun, 22 Jan 2006 11:52:55 +0000

Hello!
I am currently writing program that uses WriteFunction and WriteData
options. It is written in C++. For WriteData and WriteFunction I have used
the same structure and function as in:
http://curl.haxx.se/lxr/source/docs/examples/getinmemory.c
But I have problems with casting, compilator says:
mod2.cpp: In constructor `SMS::SMS()':
********
mod2.cpp:60: error: invalid conversion from `void*' to `FILE*'
mod2.cpp:60: error: initializing argument 1 of `
   cURLpp::OptionTrait<OptionType, option>::OptionTrait(typename
   cURLpp::Option<OptionType>::ParamType) [with OptionType = FILE*,
CURLoption
   option = CURLOPT_FILE]'
********

And line 60 in my file is:
handle.setOpt(cURLpp::Options::WriteData((void*)&chunk)); (as i the example
file)
What is wrong?

And I have small request. Please can anyone write me a small function (for
WriteFunction parameter) and small struct (for WriteData parameter). I would
like to have response from server in string. I event don't know what params
need this function. It would be very helpfull for noobs like me :).
Please help,

Greetings,
Jacek Jablonski

_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2006-01-22

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET