JCL Help:TJclFileVersionInfo.Create@HMODULE
JCL Help: TJclFileVersionInfo.Create Constructor (HMODULE)
Search in JCL Help
Search in all projects
Summary
Creates an instance of TJclFileVersionInfo.
Pascal
public constructor Create(const FileName: string); overload;
public constructor Create(const Window: HWND; Dummy: Pointer = nil); overload;
public constructor Create(const Window: HWND); overload;
public constructor Create(const Module: HMODULE); overload;
Parameters
Parameters | Description |
AFileName | The fully qualified name of the file whose version resource to read. |
Description
The Create constructor creates an instance of the TJclFileVersionInfo class and attaches it to the executable specified by FileName. If successful you can use the properties of TJclFileVersionInfo to start reading the version resource information from the executable. If the constructor cannot read the version resource from the specified file (e.g. because the file does not exist or does not have a version resource) an exception is raised (using RaiseLastWin32Error). To avoid the exception and check beforehand if the file has a version resource you can use the VersionResourceAvailable function.
See Also
About
Donator
Marcel van Brakel
Notes
To include version information in your own projects select "Project | Options" and go to the "Version Info" tab.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page