ecir Newbie
Joined: 04 Oct 2007
Posts: 1
|
Posted: Thu Oct 04, 2007 9:51 am Post subject: usbadc11 c#application devolopment problem |
|
|
I'm developing a usbadc11 project with c#. But, when I run the project, I see the message like that.
" adc1132.dll not loaded. The modul which specified wasn't found.(Hresult special state return:0X8007007E"
my class:
using System;
using System.Runtime.InteropServices;
namespace usbbaglanti
{
class usbcom
{
[DllImport("ADC1132.dll", SetLastError = true)]
public static extern bool adc11_open_unit(int port, int product);
}
}
my program code:
try
{
if (usbbaglanti.usbcom.adc11_open_unit(101, 11))
MessageBox.Show("Bağlntı Başarılı");
else
MessageBox.Show("Bağlntı Başarısız");
}
catch (Exception ee)
{
MessageBox.Show(ee.Message.ToString());
} |
|