If you're using ActivePerl, you need to use the compiler that came with VC++/VS version 6. I think MSVCR80.dll is used by newer versions of that compiler (The one from VS2005?) and I think the compiler and the library is not compatible with perl binaries created using VS6.