usbadc11 c#application devolopment problem

 
Post new topic   Reply to topic    Pico Technology Forum Index -> PicoLog
Author Message
ecir
Newbie


Joined: 04 Oct 2007
Posts: 1

PostPosted: Thu Oct 04, 2007 9:51 am    Post subject: usbadc11 c#application devolopment problem Reply with quote

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

}
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> PicoLog
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group