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.
val84Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
MadshiConnect With a Mentor Commented:
Yes, of course. That's the most common reason for using ShareMem.

So I guess I can answer the question.

Regards, Madshi.
0
 
MadshiCommented:
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.
0
 
val84Author Commented:
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.
0
 
val84Author Commented:
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.
0
All Courses

From novice to tech pro — start learning today.