ProgressBar of write/copy a file from resources
I have issue with reading "bytesWritten: from WriteFile in a second thread of application.
HANDLE hFile = CreateFile(_T(".\\tmpRes.dat"), GENERIC_WRITE|GENERIC_READ, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
WriteFile(hFile, pData, size, &bytesWritten, NULL);
In Another thread I tried:
DWORD fsizeat = GetFileSize( hFile, NULL ); //but is always < 1
//and sinple way
//I try with
but always write 0
file saves correctly
Topic archived. No new replies allowed.