Hello Igor,

yes , I search something like in the example,
but this will not work.
I get this error when I try to compile it:

error: no match for 'operator<<' in 'ts <<
cgicc::HTMLBooleanElement<cgicc::aTag>(((const std::basic_string<char,
std::char_traits<char>, std::allocator<char> >&)(&
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>(((const char*)"Send Mail"), ((const std::allocator<char>&)((const
std::allocator<char>*)(&
std::allocator<char>()))))))).cgicc::HTMLBooleanElement<cgicc::aTag>::<anonymous>.cgicc::HTMLElement::set(((const
std::string&)(& std::basic_string<char, std::char_traits<char>,
std::allocator<char> >(((const char*)"href"), ((const
std::allocator<char>&)((const std::allocator<char>*)(&
std::allocator<char>())))))), ((const std::string&)(&
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>(((const char*)"mailto:[email protected]";), ((const
std::allocator<char>&)((const std::allocator<char>*)(&
std::allocator<char>())))))))'

This was my test code

QString Test;
QTextStream ts(&Test,QIODevice::WriteOnly);
ts << cgicc::a("Send Mail").set("href","mailto:[email protected]";);

Thanks for your help.

Igor schrieb:
> Hello Frank,
> 
> Wednesday, March 25, 2009, 11:01:26 AM, you wrote:
> 
> FB> Hello Steve,
> FB> I have look at the docu for the class.
> FB> But the doc say, that this is for input only,
> FB> but my problem is the output that must be go
> FB> into the QTextStream.
> 
>     cgicc knows nothing about the output, it is your application
>     that is responsible for what to do with the output cgicc produces.
>     You may want to put it to cout or QTextStream or whatever.
> 
>     QString str;
>     QTextStream ts( &str, IO_WriteOnly );
>     ts << cgicc::a("Send Mail").set("href", "mailto:[email protected]";);
> 
>     or you may try to redirect cout to QTextStream
> 
> 


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
help-cgicc mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cgicc

Reply via email to