Hi everyone!,

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.
I can't use QHttp class, because it has problem with POST request under wince.
http://trolltech.com/developer/task-...5&method=entry

here is sample of code:
Qt Code:
  1. QString str;
  2. char szBuffer[4096];
  3. DWORD dwNumberOfBytesRead = 0;
  4. while ( InternetReadFile(hResourceHandle, szBuffer, sizeof(szBuffer),
  5. &dwNumberOfBytesRead) &&
  6. dwNumberOfBytesRead )
  7. {
  8. str.append(szBuffer);
  9.  
  10. }
  11.  
  12. qDebug() << str;
To copy to clipboard, switch view to plain text mode 

qDebug prints nothing and str.length() == 0, but dwNumberOfBytesRead > 0

Thanks for any help!