Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

low level input from address 0x31d

Status
Not open for further replies.
Apr 20, 2001
27
0
0
US
I am on a automatic conveyor belt project and need to read an input from interrupt address 0x31d.

Is there any function in VB that can read data from a low level input?

Thanks

 
forgot to mention, to stress my question a little further, is there any function in VB6 that are similar to inp/outp in C++

Thanks
 
Declare Sub vbOut Lib "WIN95IO.DLL" (ByVal nPort As Integer, ByVal nData As Integer)
Declare Sub vbOutw Lib "WIN95IO.DLL" (ByVal nPort As Integer, ByVal nData As Integer)
Declare Function vbInp Lib "WIN95IO.DLL" (ByVal nPort As Integer) As Integer
Declare Function vbInpw Lib "WIN95IO.DLL" (ByVal nPort As Integer) As Integer

 
Note that WIN95IO.DLL won't work under NT, 2k or XP. You would probably need to do a C++ DLL and use that - dunno about timing implications though!

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Thanks everyone. I found the library I needed. It's the inpout32.dll and it does work under nt/2k/xp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top