Code:LARGE_INTEGER li;
GetFileSizeEx(hFile, &li);
Printable View
Code:LARGE_INTEGER li;
GetFileSizeEx(hFile, &li);
But using a LARGE_INTEGER for the file size causes alot of errors in the rest of the program.
What is the easiest way to get around this? How do i convert a LARGE_INTEGER to a DWORD?Quote:
main.cpp: In function `int main(int, char**)':
main.cpp:42: error: no match for 'operator/' in 'InputSize / FileCount'
main.cpp:43: error: no match for 'operator%' in 'InputSize % FileCount'
Use the "QuadPart" section of the LARGE_INTEGER union.
http://msdn2.microsoft.com/en-us/lib...13(VS.85).aspx
--
Mats