想调用指昂的指纹系统的PC端匹配的API,
API说明如下:
1: Match two character file on PC
int WINAPI Match2Fp(unsigned char* Src,unsigned char* Dst);
Parameter: Src: source character file buffer.
Dst: destination character file buffer.
Return: function return a score of one matching. Basicly , Should the number be equal or above 50, that indicates successful matching. And the higher the number, the more precise the matching.
用C++调用该API已成功,现想用C# window应用程序调用,调用代码如下:
[DllImport("ARTH_DLL.dll")]
static extern int Match2Fp(byte[] Src, byte[] Dst); 出现异常,未处理BadImageFormatException.试图加载格式不正确的程序。(异常来自 HRESULT:0x8007000B)声明:
1、不是参数问题。
2、不是64位,32问题。
3、用C#控制台应用程序已调用成功。
API说明如下:
1: Match two character file on PC
int WINAPI Match2Fp(unsigned char* Src,unsigned char* Dst);
Parameter: Src: source character file buffer.
Dst: destination character file buffer.
Return: function return a score of one matching. Basicly , Should the number be equal or above 50, that indicates successful matching. And the higher the number, the more precise the matching.
用C++调用该API已成功,现想用C# window应用程序调用,调用代码如下:
[DllImport("ARTH_DLL.dll")]
static extern int Match2Fp(byte[] Src, byte[] Dst); 出现异常,未处理BadImageFormatException.试图加载格式不正确的程序。(异常来自 HRESULT:0x8007000B)声明:
1、不是参数问题。
2、不是64位,32问题。
3、用C#控制台应用程序已调用成功。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货