Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a program written in Embarcadero XE5 which also connects to MySQL database using dbExpress components. The components I use also require midas.dll library, but the library I put into the folder with the compiled .exe file is ignored by the program and runs into Cannot load midas.dll error.

What I have tried:

At my computer, the .exe file ends up using C:\Program Files (x86)\Embarcadero\RAD Studio\12.0\bin\midas.dll , but if I move midas.dll to the program's folder (where the .exe file is), the program ignores it and says Cannot open midas.dll!

At another computer, placing midas.dll into the folder with the .exe file does not work either. Even placing midas.dll into the folder which works for me does not make the .exe file find it. How do I make my .exe file find midas.dll? By all I found it is supposed to find it in the program's folder, but it does not.
Posted
Updated 27-Mar-18 1:48am

1 solution

See delphi - Midas.dll error loading midas.dll - Stack Overflow[^]

Or add the unit MidasLib to the uses clause of your code to link statically. Then you don't need to install the DLL on clients. See Deploying Applications that use ClientDataSets[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900