Caution: this is old EurekaLog 6 documentation. This is not the latest version.
EurekaLog includes a function called GetCompilationDate, that enables you to obtain the compilation date of a specified module (in local or global-GMT time coordinates). Syntax of this function is as follows:
function GetCompilationDate(HModule: THandle; LocalTime: Boolean; var Date: TDateTime): Boolean;
The first parameter indicate the module handle (HInstance for the current module), the second indicate the result format and the last parameter indicate the result value. The function returns True if the required module was compiled with EurekaLog and False otherwise.
Example:
uses ExceptionLog; // The required unit...
var Date: TDateTime; begin ... if GetCompilationDate(HInstance, True, Date) then MessageBox(0, PChar(FormatDateTime('dd/mm/yyyy hh:nn:ss', Date)), '', 0); ... end;
|