Subject | Re: [firebird-support] Question about use of IB_Constants.IB_GDS32 |
---|---|
Author | Nando Dessena |
Post date | 2005-11-10T11:46:39Z |
Steve,
S> I'm not sure how to make certain that fbclient.dll is being used. I'm
S> using Delphi 7 and IBO 4x with Firebird 1.5.2. In my main data
S> module, I've added IB_Constants to my uses clause and added the
S> following initialization statement.
S> initialization
S> // Replace the normal value with the alternate client DLL value.
S> IB_Constants.IB_GDS32 := 'FBCLIENT.DLL';
S> The main data module contains my TIB_Connection object. Is this the
S> correct method for specifying a client dll? If not, what am I missing?
this should work, although you have to make sure that this data module
is the first contact of your application with IBO when the program
starts. If you want to really make sure, then add "MainDataModule"
(the name of the unit that contains the initialization section above)
as the first unit in your project's uses clause, or at least as high
as possible in the unit list.
If you want to use a particular version of fbclient.dll (let's say the
version in your application folder) then you might want to qualify the
file name, as in:
IB_Constants.IB_GDS32 := ExtractFilePath(ParamStr(0)) +
'fbclient.dll';
Using the unqualified name puts you in the hands of Windows'
LoadLibrary algorithm, which might or might not be what you want and
is a topic of its own.
Ciao
--
Nando Dessena
======================================================
I support Firebird, I am a Firebird Foundation member!
Join today at http://www.firebirdsql.org/ff/foundation
======================================================
S> I'm not sure how to make certain that fbclient.dll is being used. I'm
S> using Delphi 7 and IBO 4x with Firebird 1.5.2. In my main data
S> module, I've added IB_Constants to my uses clause and added the
S> following initialization statement.
S> initialization
S> // Replace the normal value with the alternate client DLL value.
S> IB_Constants.IB_GDS32 := 'FBCLIENT.DLL';
S> The main data module contains my TIB_Connection object. Is this the
S> correct method for specifying a client dll? If not, what am I missing?
this should work, although you have to make sure that this data module
is the first contact of your application with IBO when the program
starts. If you want to really make sure, then add "MainDataModule"
(the name of the unit that contains the initialization section above)
as the first unit in your project's uses clause, or at least as high
as possible in the unit list.
If you want to use a particular version of fbclient.dll (let's say the
version in your application folder) then you might want to qualify the
file name, as in:
IB_Constants.IB_GDS32 := ExtractFilePath(ParamStr(0)) +
'fbclient.dll';
Using the unqualified name puts you in the hands of Windows'
LoadLibrary algorithm, which might or might not be what you want and
is a topic of its own.
Ciao
--
Nando Dessena
======================================================
I support Firebird, I am a Firebird Foundation member!
Join today at http://www.firebirdsql.org/ff/foundation
======================================================