Test and Measurement Forum

GetValue problem

Post your .Net discussions here

GetValue problem

Postby fleed » Mon Dec 10, 2007 8:37 pm

I wrote this extern function:


Code: Select all
[DllImport("adc1632.dll", EntryPoint = "adc16_get_value")]
private static extern short GetValue(out int value, short port, short channel);


But when I try using it, it always return 0.
Where's the problem? Is my declaration correct?
Thanks
fleed
Newbie
 
Posts: 1
Joined: Mon Dec 10, 2007 8:29 pm

Postby gruntman » Fri Jan 25, 2008 7:05 pm

Fleed,

Can you post up the rest of your code? Your calling function appears to be correct, with the rest of the code I can look at it to see what the error is. If you don't want to post it publicly you can email it to me at richard@pc-oscilloscopes.com.

Regards,

Richard Boyd
Technical Specialist
http://www.pc-oscilloscopes.com
gruntman
Guru
Guru
 
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm


Return to .Net Languages (C#, VB.Net, .)

Who is online

Users browsing this forum: No registered users and 0 guests