I don't know, I guess it could be

The dll I am using was compiled using D2010, but I am trying to use said dll from Lazarus...

I don't think it is possible to compile the dll using Lazarus due to compiler issues

cheers,
Paul