Ver Mensaje Individual
  #2  
Antiguo 05-05-2006
Avatar de estebanx
estebanx estebanx is offline
Miembro
 
Registrado: dic 2004
Ubicación: Santo Domingo, Dom Rep
Posts: 52
Reputación: 20
estebanx Va por buen camino
Esta funcion te ayudara.
Saludos
Código Delphi [-]
function Tfrmacerca.GetAppVersion: string;

 var
   Size, Size2: DWord;
   Pt, Pt2: Pointer;
  begin 
    Size := GetFileVersionInfoSize(PChar (ParamStr (0)), Size2);
    if Size > 0 then 
    begin 
      GetMem (Pt, Size);
      try
         GetFileVersionInfo (PChar (ParamStr (0)), 0, Size, Pt);
         VerQueryValue (Pt, '\', Pt2, Size2);
         with TVSFixedFileInfo (Pt2^) do 
         begin 
           Result:= ' Ver '+
                    IntToStr (HiWord (dwFileVersionMS)) + '.' +
                    IntToStr (LoWord (dwFileVersionMS)) + '.' +
                    IntToStr (HiWord (dwFileVersionLS)) + '.' +
                    IntToStr (LoWord (dwFileVersionLS));
        end; 
      finally
        FreeMem (Pt);
      end; 
    end; 
  end;
Responder Con Cita