Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

delphi - dbxfb not found when using firebird 2.5

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499-

ERROR_BAD_EXE_FORMAT

193 (0xC1)

%1 is not a valid Win32 application.

It is indeed the bitness problem as suggested by Mark.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...