Ver Mensaje Individual
  #10  
Antiguo 13-08-2010
Avatar de delphi.com.ar
delphi.com.ar delphi.com.ar is offline
Federico Firenze
 
Registrado: may 2003
Ubicación: Buenos Aires, Argentina *
Posts: 5.964
Reputación: 29
delphi.com.ar Va camino a la fama
Yo en Delphi uso esto, habría que traducirlo a C++

Código Delphi [-]
function FileSize(const FileName: string): Int64;
var
  sr: TSearchRec;
begin
  if FindFirst(FileName, faAnyFile, sr) = 0 then
    try
      Result := Int64(sr.FindData.nFileSizeHigh) shl Int64(32) +
                Int64(sr.FindData.nFileSizeLow);
    finally
      SysUtils.FindClose(sr);
    end
  else
    Result := -1;
end;
__________________
delphi.com.ar

Dedique el tiempo suficiente para formular su pregunta si pretende que alguien dedique su tiempo en contestarla.
Responder Con Cita