Page 1 of 1
Firebirdd-x.x in protocol property of ZConnection
Posted: 14.12.2007, 08:10
by albert.pratama
Hi everyone,
Does anybody know what the 'firebirdd-x.x' option in protocol property is used for? I've been searching in this forum, but didn't found any answers or posts.
Albert
Posted: 14.12.2007, 09:14
by mdaems
Yep... It can be used to load the embedded firebird.dll next to the client library.
eg ZPlainFirebird20.pas
Code: Select all
{ ***************** Plain API Constants definition **************** }
const
WINDOWS1_DLL_LOCATION = 'fbclient20.dll';
WINDOWS1_DLL_LOCATION_EMBEDDED = 'fbclientd20.dll';
This can be used to copy from embedded to client-server firebird using 2 different dll's on different connections.
I think naming comes from the analogy with mysql. There it was implemented first (because of some differences in API-calling made it necessary to have some switch anyway)
Is this answer clear enough?
Mark
Posted: 14.12.2007, 09:22
by albert.pratama
Kinda being more confused
So, if I wrote a code to be run in client's pc with firebird embedded, I better use this 'firebirdd-x.x' protocol, instead of 'firebird-x.x'?
Thanks for helping.
Albert
Posted: 14.12.2007, 09:53
by mdaems
For firebird it seems not to make a difference, for the moment. You can just replace the client-server dll for the embedded server dll.
But :
- if you start a new project and plan to use the embedded server it's more verbose to use de firebirdd protocol.
- if you want to use both dll's at the same time in your program (eg for copying data) this is an easy way to do it.
- it removes the need to have the same name for 2 different dll's. You can have them both in your system path and just choose which one to use for every individual project.
- maybe the name we chose is a little strange...
Mark
Posted: 14.12.2007, 10:00
by albert.pratama
Ok Mark, it's all clear now. Thanks!
Albert