我正在使用试用版 VeriFinger SDK。我已经从 dotNET_Portable 文件夹中添加了所有支持的 DLL。我已将 AnyCPU 更改为 x64。但是我在初始化 NDeviceManager 对象时遇到了异常。我的代码如下。谁能告诉我我做错了什么?
System.TypeInitializationException :“Neurotec.Devices.NDeviceManager”的类型初始化程序引发了异常。异常消息:“Neurotec.Devices.NDeviceManager”的类型初始化程序引发异常。InnerException:无法加载 DLL“NDevices”:找不到指定的模块。(来自 HRESULT 的异常:0x8007007E)
using Neurotec.Devices;
private NDeviceManager _deviceMan;
protected override void OnNavigatedTo(NavigationEventArgs e)
{
_deviceMan = new NDeviceManager(NDeviceType.FingerScanner, true);
}
private void btnRefreshScannerList_Click(object sender, RoutedEventArgs e)
{
var Scanners = _deviceMan.Devices;
//TODO:
}