Before you can load CShell.dll into your loadlib you'll have to also load its dependencies (the VC++ 2005 dlls). Those should be located in the crossfire folder. I recommend you to create your own loadlib that does this (either manually or by compiling it to use VC++ 2005 itself)