Link to home
Start Free TrialLog in
Avatar of val84
val84

asked on

DLL error.

Hi everybody.
I try to call a string function from a .DLL library but I get the error
"A required .DLL file, DELPHIMM.DLL, was not found".
 I put in the uses clause "ShareMem" both in the calling unit and the .DLL library, as I am told when I create the .DLL. Where is the mistake?
Alex.
Avatar of Madshi
Madshi

There's no mistake, if you use ShareMem, you have to copy the dll "DelphiMm.dll" from the "c:\Delphi\Bin" directory to your project's directory. You also have to distribute this dll with your application.

Regards, Madshi.
Avatar of val84

ASKER

Hi Madshi.
Thanks very much. By the way, I don't want to use ShareMem for it's sake, I only want to use string functions.
Best regards, Alex.
Avatar of val84

ASKER

Hi Madshi.
Thanks very much. By the way, I don't want to use ShareMem for it's sake, I only want to use string functions.
Best regards, Alex.
ASKER CERTIFIED SOLUTION
Avatar of Madshi
Madshi

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial