On Mon, Jul 11, 2011 at 10:02 AM, PARVINDER RAJPUT <[email protected]>wrote:
> Thanx sir .
> But my problem is not solved.
>
> On Mon, Jul 11, 2011 at 6:51 AM, Matthew Sherborne
> <[email protected]>wrote:
>
>> It's expecting an int for the row to insert the string. Also it doesn't
>> return a string:
>> http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WStringListModel.html#a3bf0b8d2e110cbd518a57f74e8f9e4c6
>>
>> so you could change the line from:
>>
>> tuple->store = "A: " +
>> Wt::WStringListModel::insertString(strl).toUTF8();
>>
>> to:
>>
>> >tuple->store = "A: " + strl.toUTF8();
>> >Wt::WStringListModel::insertString(ROW_NUMBER, strl);
>> Sir When i have used that function then shown error is:-
>>
> /home/parvinder/Desktop/website/source/test.C: In member function ‘void
> WtApplication::populate()’:
> /home/parvinder/Desktop/website/source/test.C:109:32: error: ‘struct
> std::string’ has no member named ‘toUTF8’
>
> /home/parvinder/Desktop/website/source/test.C:110:1: error: incomplete type
> ‘Wt::WStringListModel’ used in nested name specifier
>
>
>
>> >Where ROW_NUMBER is the number of the row you want to store it in .. or
>> more likely you'll want:
>>
>> >tuple->store = "A: " + strl.toUTF8();
>>
> Wt::WStringListModel::addString(strl) ;
>>
> same error
>
>>
>> >Maybe strl is empty ?
>> Sir strl is not empty. I have mention in populate()
>>
> std::string strl;
> strl="parvinder rajput";
>
Check it this link Sir
http://paste.ubuntu.com/641655/
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest