问题描述
我安装了 ZKtecoFingerprint SDK 并且我正在尝试运行此 SDK 的演示,但出现此异常!
System.DllNotFoundException: 'Unable to load DLL 'libzkfp.dll': The specified module Could not be found. (Exception from HRESULT: 0x8007007E)'
如何使用 Zketco 演示应用程序??
代码:
private void bnInit_Click(object sender,EventArgs e)
{
cmbIdx.Items.Clear();
int ret = zkfperrdef.ZKFP_ERR_OK;
if ((ret = zkfp2.Init()) == zkfperrdef.ZKFP_ERR_OK)
{
int nCount = zkfp2.GetDeviceCount();
if (nCount > 0)
{
for (int i = 0; i < nCount; i++)
{
cmbIdx.Items.Add(i.ToString());
}
cmbIdx.Selectedindex = 0;
bnInit.Enabled = false;
bnFree.Enabled = true;
bnopen.Enabled = true;
}
else
{
zkfp2.Terminate();
MessageBox.Show("No device connected!");
}
}
else
{
MessageBox.Show("Initialize fail,ret=" + ret + " !");
}
}
解决方法
我终于找到了解决方案。你无事可做。你只需要安装sdk自带的驱动。我知道这太晚了,但如果以后有人找到解决方案,我会写下这个答案。谢谢
,其中许多连接到使用 SDK 的设备,与 32/64 位相关。将您的项目配置更改为 x86(32 位)并再次检查。