I am not familiar with Codeblocks. We're using VC++, so I can help you when you compile your DLL with that compiler. But maybe other users have experience with Codeblocks?