Thank you for your post, but I just found how to fix it. I had imported some Windows DLLs which weren't compatible.