Subject | Re: [IBO] Server Version Info |
---|---|
Author | Frank Ingermann |
Post date | 2003-12-14T13:46:06Z |
Hi,
Lucas Franzen wrote:
i made a little example that shows how to get the dll information
you'll need, in a single small D5 form. download from:
http://www.fingerbird.de/downloads/FBClientDLLSelector.zip (~4k)
Laziness rules ;-), so i'll just quote the header comment below.
hth & cheers,
Frank
Firebird Client DLL Selector for IBObjects.
about:
lets you choose which dll to use to access Firebird/InterBase(TM)
at the start of an IBO application (GDS32, FBClient, FBEmbed...).
very handy for testing the same app against a number of different
Firebird servers, e.g. different Release Candidates or versions.
also shows how to get the full filename and version information from
a dll given its name.
usage:
include this unit in your project file (.dpr) before any other unit
that uses IBObjects (directly or indirectly), like this:
program myIBOApp;
uses
Forms,
frmFBClientSelect in 'frmFBClientSelect.pas' {frmFBClientSelectDlg},
(...)
appMain in 'appMain.pas' {frmMain};
(...)
Lucas Franzen wrote:
> Aage,...jumping in...
>
>
>
>>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.
i made a little example that shows how to get the dll information
you'll need, in a single small D5 form. download from:
http://www.fingerbird.de/downloads/FBClientDLLSelector.zip (~4k)
Laziness rules ;-), so i'll just quote the header comment below.
hth & cheers,
Frank
Firebird Client DLL Selector for IBObjects.
about:
lets you choose which dll to use to access Firebird/InterBase(TM)
at the start of an IBO application (GDS32, FBClient, FBEmbed...).
very handy for testing the same app against a number of different
Firebird servers, e.g. different Release Candidates or versions.
also shows how to get the full filename and version information from
a dll given its name.
usage:
include this unit in your project file (.dpr) before any other unit
that uses IBObjects (directly or indirectly), like this:
program myIBOApp;
uses
Forms,
frmFBClientSelect in 'frmFBClientSelect.pas' {frmFBClientSelectDlg},
(...)
appMain in 'appMain.pas' {frmMain};
(...)