+ -
当前位置:首页 → 问答吧 → 求解●●●关于VS2005部署到IIS后,调用的Dll编码出现问题●●●

求解●●●关于VS2005部署到IIS后,调用的Dll编码出现问题●●●

时间:2010-10-18

来源:互联网

目前项目中采用VS2005 j#开发页面(大家当他是C#就好了),需要调用dll实现指纹匹配算法。dll采用的字符编码是”多字节字符集“,在VS中调试时(采用自带的小型发布器)能正常调用,但使用IIS调试时,返回编码错误,接口的引入方式为
C# code
    //PInvoke call function from FpMatchingAdapter.dll
    /** @attribute DllImport("E:\\Visual Studio 2005\\Projects\\FpMatchingAdapter\\debug\\FpMatchingAdapter.dll",CharSet=CharSet.Auto,SetLastError=true) */
    private static native int isMatch(byte[] a, byte[] b);



调用时采用
C# code
int ret = isMatch(fpData.getBytes(), dbFpData.getBytes());



各位大侠,有谁知道原因啊?帮帮忙,搞了好几天了。。。。。

作者: lomanchen   发布时间: 2010-10-18

dll是用什么语言写的

在VS中调试时能正常调用
说明两个运行环境不同,仔细检查对比一下吧

作者: redmudwashcompanion   发布时间: 2010-11-04

热门下载

更多