Originally Posted by AcerExtensa 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. Originally Posted by lyuts You are not using append correctly. QString's append receives "char*" as a paramete,r but not "char". But szBuffer is a char *.
Forum Rules
Bookmarks