I have a directory named "dic", my application is in this directory:
c:\teachmenow3 and the "dic" directory is "c:\teachmenow3\dic"
My code identify the dll and call the method to load the dll, please, take a look:
Code: Select all
if FileExists('dic\hunspelldll.dll') Then
Begin
RVHunSpell1.Dictionaries.Clear;
RVHunSpell1.DllDir := 'dic\';
RVHunSpell1.DictDir := dic\';
With RVHunSpell1.Dictionaries.Add Do Begin
Load('en_us');
if not Active then Begin
Free;
end;
End;
end;
when the method Load is called, I got an error at this part of your code:
DLLHandle := LoadLibrary(PChar(dllname));
this part is on the RVHunSpell.pas
in function LinkFunctions:boolean;
Why?
Thanks