版本SDK5.0
[DllImport("Match.dll")]
static extern bool process(string a, string b);
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (!string.IsNullOrEmpty(Request.Form["finger"]))
{
//var fpProcess = new FPCom.FPProcess();
foreach (var T in new BLL.UserFingerBLL().GetAllFinger())
{
//IntPtr fingerinfo = Marshal.StringToHGlobalAnsi(T.FingerTemplate);
Response.Write(process(T.FingerTemplate, Request.Form["finger"]) + "<br/>");
}
Response.Write(Request.Form["finger"]);
}
}
}
说明,Match.dll版本最后是在SDK包中提出,否则程序会出错。