TRsFileInfo

Created by Jeff Hiscock

Created on 02/24/00 7:17 PM

  1. Purpose
  2. Retrieve basic version information from the file info resource of an excutable , dll etc…

  3. Inheritance
  4. Tcomponent

  5. Properties
    1. Public
    2. Name

      Data Type

      Notes

      MajorVersion

      String

      Major version of the image

      MinorVersion

      String

      Minor version of the image

      ReleaseNumber

      String

      Release number of the image

      BuildNumber

      String

      Build Number of the image

      VersionString

      String

      All of the above in the x.x.x.x order in the order as above

      SimpleVersion

      String

      Major and Minor Version in the x.x format

    3. Published

    Name

    Data Type

    Notes

    FileName

    String

    Filename for the image

    UseExe

    Bool

    If true, if the filename property is NULL the File that the component is linked into is used

  6. Methods
    1. Public

    Declaration

    Notes

    void __fastcall

    Execute ()

    Gets the version information and populates all of the public properties

     

  7. Events
  8. Declaration

    Notes

    OnNoFile

    TnotifyEvent -- If not file name is given and UseExe is false this event is fired.

    OnReadHeaderError

    TnotifyEvent -- If the read header call fails. This will happen if it is 16 bit image or if the file does not have a version info resource.

    OnGetFileInfoError

    TnotifyEvent – As above

  9. Notes

This component could do a whole lot more. Currently just gets the version information as that is all we needed. Please modify as required.