0
我试着举办的MagTek读卡器到WPF,所以我封装的demo到Windows窗体用户控件,当我使用的DLL从该控件在Windows应用程序,它工作正常,但在WPF中使用时,它提供此错误:错误托管在WPF Windows窗体用户控件时
Could not load file or assembly 'Interop.ctlUSBHID, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
我的代码:
xmlns:mcl="clr-namespace:CardReader;assembly=CardReader"
<WindowsFormsHost Name="wfh"
DockPanel.Dock="Top"
Height="300">
<mcl:Reader Name="_Reader"/>
</WindowsFormsHost>
你的帮助是非常赞赏
是,所有有:( –