GetValue problem

 
Post new topic   Reply to topic    Pico Technology Forum Index -> .Net Languages (C#, VB.Net, .)
Author Message
fleed
Newbie


Joined: 10 Dec 2007
Posts: 1

PostPosted: Mon Dec 10, 2007 8:37 pm    Post subject: GetValue problem Reply with quote

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
Guru


Joined: 28 Sep 2006
Posts: 88
Location: Garden City, KS USA

PostPosted: Fri Jan 25, 2008 7:05 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> .Net Languages (C#, VB.Net, .)
All times are GMT
Page 1 of 1

 


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