2011-11-30 65 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

是,所有有:( –

相關問題