2011-11-30 66 views
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> 

你的帮助是非常赞赏

回答

0

有你提到的组件,

WindowsFormsIntegration程序和 System.Windows.Forms的

在WPF应用程序?

+0

是,所有有:( –

相关问题