Midas.dll error loading midas.dll

X-88 picture X-88 · Sep 16, 2014 · Viewed 38.4k times · Source

I have a problem when I try my app on an other computer without Delphi.

If I put midas.dll in the same folder / directory on System32 I always get error message Error loading midas.dll, but if I put midas.dll on the desktop then the error message does not appear and the application runs normally.

How to handle midas.dll so I can place it in the same folder?

enter image description here

enter image description here

Answer

manlio picture manlio · Sep 16, 2014

From the command line type:

regsvr32 filepath\midas.dll

You should specify a full path (if another copy of midas.dll exists in the system search path, regsvr32 may choose that copy instead of the one in the current directory).

The first time midas.dll is loaded on a machine, it writes a registry entry where it is located.  After that, it always looks to that original location when it is needed.