Hello Everyone.
I have made the simple application and postgre database are used. but i am
facing problem in application.
My application is simple insert the text in database. Text stored in string
variable.
see my application at this link.
http://paste.ubuntu.com/641409/
problem intat part:-
void WtApplication::populate() {
msg("<b>Populate</b>");
std::string strl;
std::string strl;
strl="parvinder rajput";
ptrA a;
{ A *tuple = new A();
tuple->store = "A: " +
Wt::WStringListModel::insertString(strl).toUTF8();
try { Transaction tt(session_);
a = session_.add(tuple);
tt.commit();
} catch (...) {}
}
error is:
/home/parvinder/Desktop/website/source/test.C: In member function ‘void
WtApplication::populate()’:
/home/parvinder/Desktop/website/source/test.C:109:65: error: no matching
function for call to ‘Wt::WStringListModel::insertString(std::string&)’
/usr/include/Wt/WStringListModel:67:8: note: candidate is: void
Wt::WStringListModel::insertString(int, const Wt::WString&)
please help me. i am beginner of witty.
------------------------------------------------------------------------------
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