Test and Measurement Forum

usbadc11 c#application devolopment problem

Forum for discussing PicoLog

usbadc11 c#application devolopment problem

Postby ecir » Thu Oct 04, 2007 9:51 am

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

}
ecir
Newbie
 
Posts: 1
Joined: Thu Oct 04, 2007 7:38 am

Return to PicoLog

Who is online

Users browsing this forum: No registered users and 1 guest