由于xp系统的特殊性,无法获取文件大小,所以

添加如下代码:

     if (size_ == 0)
     {
         int size = 0;
         FILE *fp = fopen(filename.getCharPointer(), "r");
         if (fp)
         {
             fseek(fp, 0L, SEEK_END);
             size = ftell(fp);
             fclose(fp);
         }
         size_ = size;
     }