|
|
| Author |
Message |
fleed Newbie
Joined: 10 Dec 2007
Posts: 1
|
Posted: Mon Dec 10, 2007 8:37 pm Post subject: GetValue problem |
|
|
I wrote this extern function:
| Code: |
[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 |
|
| Back to top |
|
 |
gruntman Guru

Joined: 28 Sep 2006
Posts: 96
Location: Garden City, KS USA
|
Posted: Fri Jan 25, 2008 7:05 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|