谢谢三位。<br> DWORD dwLowSize = 0, dwHighSize = 0;<br> long double dSize = 0;<br> dwLowSize = GetFileSize(f, &dwHighSize);<br><br> if (dwLowSize != 0xFFFFFFFF)<br> {<br> dSize = dwHighSize * 1024 * 1024 * 1024;<br> dSize *= 4;<br> dSize += dwLowSize;<br> TCHAR buf[256] = { 0 };<br> sprintf(buf, "%-20.0Lf", dSize);<br> ShowMessage("filesize = " + String(buf) );<br> }