foxhengxing
18th August 2010, 03:37
I Wrote a function as follow
writedata(const char * buf);
then I call the function ,
QString test;
test ="Hello world world";
writedata(test.toAscii ());
I pass the parameter which is QByteArray type, but the function accept type is char *,why it can work?
Please help me,Thanks!
writedata(const char * buf);
then I call the function ,
QString test;
test ="Hello world world";
writedata(test.toAscii ());
I pass the parameter which is QByteArray type, but the function accept type is char *,why it can work?
Please help me,Thanks!