Subject Re: [firebird-support] Newbie with Delphi from IB6
Author Helen Borrie
At 11:47 AM 11/04/2008, Anton Ekermans wrote:
>I've been using IB6 and have many apps running with that. Now that I'm
>migrating to FB2, which components can I use to let apps use the
>fbclient.dll instead of gds32.dll. I wouldn't want to rewrite all my
>apps, but maybe changing just a TIBDatabase component or whatever
>would be nice if I can keep all other TIBQuery, TIBSQL, etc components.
>To avoid confusion, I'd like to use fbclient.dll instead
>of 'instclient' the clone to gds32.dll on all client machines. So I'd
>like to just install FB client on workstations and know that they'll
>use fbclient.dll and not some rogue copy of IB6's gds32.dll lying
>around somewhere.
>Thanks for help to a possible FAQ

As this list isn't a Delphi list, this is a one-off reply (unless someone can give Anton a link to some IBX-related resources.

I suggest you try the following:

1. generate the "custom" gds32.dll into system32 using instclient.exe
2. rename that file as "fbclient.dll". You will then have a copy of the client library that has the version string recognised by IBX but with the name you want to use
3. Open up ibheader.pas and find this line:

IBASE_DLL = 'gds32.dll'; {do not localize}
Comment it out and replace with
IBASE_DLL = 'fbclient.dll'; {do not localize}
4. Move or delete all the dcu and bpl files out of the environment path
5. Recompile IBX entirely
6. Test your apps...depending on how they were compiled originally, you might or might not need to recompile them.

(Or you could do better than this and code the assignment of the IBASE_DLL constant conditionally).

Note that this isn't going to make IBX transparently compatible with Firebird 2 in all the ways you got used to with IB 6. They are not the same engine, not the same API.

No more Delphi questions, please. If you want to inquire about a more Firebird-friendly component set for Delphi, ask on firebird-tools.

^ heLen