Code:LARGE_INTEGER li; GetFileSizeEx(hFile, &li);
This is a discussion on Windows Specific File I/O within the Windows Programming forums, part of the Platform Specific Boards category; Code: LARGE_INTEGER li; GetFileSizeEx(hFile, &li);...
Code:LARGE_INTEGER li; GetFileSizeEx(hFile, &li);
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^
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?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'
How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics.
Use the "QuadPart" section of the LARGE_INTEGER union.
http://msdn2.microsoft.com/en-us/lib...13(VS.85).aspx
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.