So my applications in Delphi 2007 use TClientdataset features and i need to deploy MIDAS.DLL with it. I put the library in the same folder the EXE file is located.
Usually it runs fine but in some machines (and i don't know what these machines had in 'special'), even the MIDAS.DLL being in the same EXE folder, when the user try to open it the exception 'Error loading MIDAS.DLL' is throwed.
In these cases, what i need to do is :
1 - Copy MIDAS.DLL to c:\windows\system32 (32 bit Windows) or c:\windows\syswow64 (64 bit Windows)
2 - Run the command 'regsvr32 midas.dll' in prompt running as administrator.
Although this procedure solves the problem, when the issue happen i need to remotely access the customer machine to do the procedure, and this isn't always an option.
I tried the include Midaslib in the uses clause of my app, but because i use a Asprotect to encrypt the EXE (to avoid cracking), it won't execute if Midaslib is present.
Does anybody know why this problem happens and possible workarounds ?
Thanks !