raed
22nd September 2011, 15:26
hi all
i have that problem
cannot convert from 'std::_String_iterator<_Elem,_Traits,_Alloc>' to 'char *
i try to used Gsoup to send user name & password SP to my webservice
std::string stds;
stds=ui->lineEmail->text().toStdString() + ";"+ui->linePassword->text().toStdString();
v->param= stds; // problem in here
v->procedure="Sp_LogIn";
:mad:
can any one help me
Added after 8 minutes:
solution
QString str1 =stds.c_str();
QByteArray ba = str1.toLatin1();
char *c_str2 = ba.data();
v->param=c_str2 ;
thanks for all
i have that problem
cannot convert from 'std::_String_iterator<_Elem,_Traits,_Alloc>' to 'char *
i try to used Gsoup to send user name & password SP to my webservice
std::string stds;
stds=ui->lineEmail->text().toStdString() + ";"+ui->linePassword->text().toStdString();
v->param= stds; // problem in here
v->procedure="Sp_LogIn";
:mad:
can any one help me
Added after 8 minutes:
solution
QString str1 =stds.c_str();
QByteArray ba = str1.toLatin1();
char *c_str2 = ba.data();
v->param=c_str2 ;
thanks for all