Subject | RE: [IBO] Re: how to use different ibclient.dlls ? |
---|---|
Author | IBO Support List |
Post date | 2013-01-24T18:04:09Z |
I agree with what was answered below.
Another thing to do is you can put the client DLL file in the exact same
folder as the EXE you are running. When I go to connect to a client API I
check the immediate home directory for all of the different client DLL's
that are available. If I don't find one right at home, then I do a check
that allows the system path to reconcile which client I connect to.
It is possible to directly configure this as well but it involves putting a
unit in your project source first and then setting a global variable so that
when you invoke something that requires a client DLL it will use what you
have put in place to override the default behavior.
What you do is use the IB_GetClientLibNameFunc in the IB_Session unit. This
is what is called where you put in how you want it to override the default
behavior.
Hope this helps,
Jason Wharton
www.ibobjects.com
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of crepodev
Sent: Wednesday, January 23, 2013 5:14 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: how to use different ibclient.dlls ?
The firebird client dll is backward compatibility.
Use only the lastest version of client dll. In your case with the version
2.5.2 works fine with the older versions of the servers.
Another thing to do is you can put the client DLL file in the exact same
folder as the EXE you are running. When I go to connect to a client API I
check the immediate home directory for all of the different client DLL's
that are available. If I don't find one right at home, then I do a check
that allows the system path to reconcile which client I connect to.
It is possible to directly configure this as well but it involves putting a
unit in your project source first and then setting a global variable so that
when you invoke something that requires a client DLL it will use what you
have put in place to override the default behavior.
What you do is use the IB_GetClientLibNameFunc in the IB_Session unit. This
is what is called where you put in how you want it to override the default
behavior.
Hope this helps,
Jason Wharton
www.ibobjects.com
-----Original Message-----
From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com] On Behalf
Of crepodev
Sent: Wednesday, January 23, 2013 5:14 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: how to use different ibclient.dlls ?
The firebird client dll is backward compatibility.
Use only the lastest version of client dll. In your case with the version
2.5.2 works fine with the older versions of the servers.
--- In IBObjects@yahoogroups.com, "shlsjs01" wrote:
>
> Hello,
>
> i want to connect to different Firebird installations at runtime.
> E.g FB2.5.2 or FB 2.1 this two have different fbclientdlls for use.
>
> How can i tell the IBO's to use the fbclient.dll of my desire at runtime.
> Not include a .pas file at my project start. I want to change this at
runtime. What is the soulion for this ?
>
> thx for help in advance
> Hans
>
------------------------------------
___________________________________________________________________________
IB Objects - direct, complete, custom connectivity to Firebird or InterBase
without the need for BDE, ODBC or any other layer.
___________________________________________________________________________
http://www.ibobjects.com - your IBO community resource for Tech Info papers,
keyword-searchable FAQ, community code contributions and more !
Yahoo! Groups Links