To be sincere, I have a doubt... I was told it was a static library... but I see now the project from which the library is taken produces a DLL... Then it is not a static library, right? Anyway, I placed the DLL in my directory and it still has the same behavior. I will try with the way you suggested, unfortunately, as far as I can see from the messageboxes I placed, the function is simply not called. Thanks for your advice!