On my development machine, I have Delphi 10.2 and Firebird 2.5. Database apps that I create in this configuration work correctly.
I copied one program along with its database to another computer running Windows 10. I installed Firebird; I also installed SQL Manager Lite for InterBase/Firebird on this computer, and this program is able to open the database and view the data contained within. But my Delphi program cannot open the database, displaying the error message 'Unable to load dbxfb.dll (error code 193). It may be missing from the system path'.
I have copied dbxfb.dll to every location that I can think of (the same directory as where the program is, the same directory as where the database is, windowssystem32, C:Program Files (x86)Firebird, and more) but the message stays the same. On my development machine, what I believe to be the path (i.e. system propertiesadvancedenvironment variables) contains only the directory %USERPROFILE%AppDataLocalMicrosoftWindowsApps. On the other computer, I added C:Program Files (x86)Firebird but to no avail.
So where should dbxfb.dll be located, or how do I "tell" my program where to find it?
Edit: Regarding 'bitness', both computers are 64 bit. In the Project Options dialog box in Delphi, there is only the option of 32 bits. I've set the program's compatibility setting to Windows 8, but this made no difference regarding the missing dll.
Further edit: The version that is/was on the target machine is 1,412kb in size and dated 13/11/2015 1:55; this version apparently comes from C:Program Files (x86)EmbarcaderoStudio17.0in64, so this is definitely the wrong version.
In C:Program Files (x86)EmbarcaderoStudio17.0in, there is a version that is only 278kb in size, same date but hour 06:55. Copying the smaller file to the target machine and running the program gives now a different error message: i/o error during "@1" operation for file "@2". Error while trying to open file.
question from:
https://stackoverflow.com/questions/65843808/dbxfb-not-found-when-using-firebird-2-5 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…