Subject | Re: [IBO] Server Version Info |
---|---|
Author | Lucas Franzen |
Post date | 2003-12-12T21:46:13Z |
Aage,
But I think if you scan for the client dll in the path you can just
retrieve the information easily.
I read the version infos out of dll's and exe's with a the JCLFileUtils
unit from the Jedi libraray (Delphi: free available) by:
function GetVersionInfo ( const aFile: String ): String;
var
aJCLVI: TJclFileVersionInfo;
begin
if FileExists ( aFile ) then
begin
aJCLVI := TJclFileVersionInfo.Create ( dllName );
try
Result := aJCLVI.BinProductVersion;
finally
aJCLVI.Free;
end;
end;
end;
Maybe that helps.
And maybe someone jumps in to tell you how to find determine the used dll.
Luc.
> Can one also find the version of the client dll (gds32 or fbclient version) ?Not that way.
But I think if you scan for the client dll in the path you can just
retrieve the information easily.
I read the version infos out of dll's and exe's with a the JCLFileUtils
unit from the Jedi libraray (Delphi: free available) by:
function GetVersionInfo ( const aFile: String ): String;
var
aJCLVI: TJclFileVersionInfo;
begin
if FileExists ( aFile ) then
begin
aJCLVI := TJclFileVersionInfo.Create ( dllName );
try
Result := aJCLVI.BinProductVersion;
finally
aJCLVI.Free;
end;
end;
end;
Maybe that helps.
And maybe someone jumps in to tell you how to find determine the used dll.
Luc.