[Lazarus] Fonction d'une DLL récalcitrante
Bonsoir,
Petit problème avec une DLL. Elle est bien créée, la fonction est correstement intégrée et est bien présente dans la partie "exports", mais dans mon programme de test, l'appel de la fonction génère toujours une erreur "identifier not found" ...
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
begin
dll:=Loadlibrary('libUtilsUnit.dll');
TestString:='';
If Edit1.Text<>'' then
begin
If Edit2.text<>''
then
begin
Pointer(SplitString):=GetProcAddress(dll,'SplitString');
TTest:=SplitString(Edit1.Text, Edit2.Text);
For i:=0 to TTest.Count do
begin
TestString:=TestString+TTest[i];
end;
end;
showmessage(TestSTring);
end;
end; |
Je ne vois d'ou ca vient. Si vous avez une idée ...
Merci