Quote Originally Posted by AcerExtensa View Post
I trying to append chars readed from http response which is writen with wininit module into QString. but the QString is stays 0 byte length.
Weird. Maybe the buffer begins with '\0'? What does "qDebug() << QByteArray( szBuffer, dwNumberOfBytesRead )" output?

And you shouldn't disregard dwNumberOfBytesRead, unless you like random crashes.


Quote Originally Posted by lyuts View Post
You are not using append correctly. QString's append receives "char*" as a paramete,r but not "char".
But szBuffer is a char *.