usbadc11 c#application devolopment problem

Forum for discussing PicoLog
Post Reply
ecir
Newbie
Posts: 1
Joined: Thu Oct 04, 2007 7:38 am

usbadc11 c#application devolopment problem

Post by ecir »

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());

}

Post Reply