Search found 1 match

by fleed
Mon Dec 10, 2007 8:37 pm
Forum: .Net Languages (C#, VB.Net, .)
Topic: GetValue problem
Replies: 1
Views: 5483

GetValue problem

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