installation of firebird 2 client for Delphi application

I have installed a Firebird superserver on a machine
I plan to write a client application running on other networked machines that will need to access the Firebird database
The application is written in Delphi using Interbase component (I already succeeded this with the Firebird embedded server but now this application of for multi-users)
What exactly do I have to copy on the client machine and where ?
Can I avoid to run an "installer" ?
Thanks
LVL 1
LeTayAsked:
Who is Participating?
 
Ustin19Connect With a Mentor Commented:
for native usage: deploy GDS32.DLL to client's system32 and all will work fine
0
 
LeTayAuthor Commented:
I want to use the Interbase components, native in Delphi
But for this some Firebird client files must be installed on the client PC
My question is which ones ?
The references you provide do not answer this question..
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
Daniel JungesCommented:
0
 
LeTayAuthor Commented:
Well, I have copied gds32.dll in the client system32 but I still get an error message when starting the .exe (I translate, it is in french) Interbase DLL gds32.dll not found in the path. Please install Interbase to use this functionality
???
0
 
Ustin19Commented:
try put gds32.dll into directory with exe
0
 
Ustin19Commented:
try to deploy with exe (to the exe folder):
fbclient.dll
ib_util.dll
icudt30.dll
icuin30.dll
icuuc30.dll
msvcp71.dll
msvcr71.dll
and rename fbclient.dll to gds32.dll
This files located in "C:\Program Files\Firebird\Firebird_2_0\bin\"
0
 
Ustin19Commented:
any registry\system installations NOT requires
0
 
LeTayAuthor Commented:
Tried. I get exactly the same message (gds32.dll not found in the path)
0
 
Ustin19Commented:
try explicitly choose tibdatabase.libraryName (if it is possible to use FIB) or look to IBHeader.pas and explicitly choose gdi32.dll (if it is not).
Then it may be corrupted gdi32.dll (code of loading is very simple)
0
 
Ustin19Commented:
 IBLibrary := LoadLibrary(PChar(IBASE_DLL));
  if (IBLibrary > HINSTANCE_ERROR) then <some getprocaddress calls, one of them fails>. So check version
0
 
LeTayAuthor Commented:
Well, the gdi32.dll I put on the client is the one I found on the server where I installed the full thing.
LibraryName is not a property of TIBDatabase (Turbo Delphi 2006).
Info : the application runs fine on the server itself, and also on another client where I installed Firebird client only using the installer of Firebird. But I want to avoid having to do this (except if not possible otherwise), and "deliver" just what is needed (I like installers that just need to copy a few files)
0
 
Ustin19Commented:
try to deploy firebird.msg near gds32.dll (or near executable)
0
 
Ustin19Commented:
GDI32.DLL is my mistyping!
Have just trided on clear windows: copying firebird.msg & fbclient.dll to the folder with application solves described problem
0
 
LeTayAuthor Commented:
Yes of course, gds32.dll, not gdi
I copied everything but the message is still the same : Interbase DLL gds32.dll not found etc...
0
 
Ustin19Commented:
gds32 imports:
ADVAPI32.dll KERNEL32.dll MPR.dll MSVCR71.dll USER32.dll WS2_32.dll
if MSVCR71.dll does not exists (you may have troubles with environment variables) - create it or put into same dir with gds32 and exe.
Also it can needed to have record in C:\WINDOWS\system32\drivers\etc\services:
gds_db 3050/tcp
so, last chance is using instreg.exe from C:\Program Files\Firebird\Firebird_2_0\bin\ :(

BTW, is exe run from you account? does it have correct permissions (this is for cleaning of conscience only)?
0
 
LeTayAuthor Commented:
All these DLL are present (I copied the msvcr71.dll manually)
The problem is NOT that the exe can't connect to a Firebird server because the error message is displayed when the .exe loads
The exe I wrote does NOT connect to the DB when it starts, this is done later on, on user action...
0
 
Ustin19Commented:
During initialization tIBDatabase calls LoadIBLibrary from IBIntf, which creates this exception /it is DELPHI EXCEPTION, no static imports from GDS32 presents in  your exe.
Detailed analize shows, that this type of exception seldom appears (where i use t(f)ibdatabase in widows services), solution is force copy gds32.dll to global environment var %path% and (very seldom) reboot server (use on w2k3) {sorry 4 my english}
0
 
Ustin19Commented:
try to use instreg.exe, i'm so interesting in result :)
And what happens, if you use FIB* components instead IB*? FIB* compatible with IB* and have a lot of features (poor that it is shareware AFAIK)
0
 
LeTayAuthor Commented:
I found what the problem is : the gds32.dll or some depending other dll gives a kind of "access denied" when trying to open it !
That gave the error
0
 
LeTayAuthor Commented:
Also other DLL have to be deployed and it works fine
Thanks !
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.