|
-
Mar 21st, 2000, 03:13 AM
#1
Thread Starter
New Member
I need OUT and INP function in VB6.0 I don't know which functions to use, OUT and INP are not in VB, those functions are from QBasic, or which control to use ?
They are for I/O port...
-
Mar 21st, 2000, 09:15 AM
#2
Hyperactive Member
go to http://www.lvr.com/parport.html You will find something called inpout16.zip (or inpout32.zip if you want it in 32 bit). These have .dlls that will let you do inp and out. There is documentation, too. Basically, the code looks like:
Code:
Public Declare Function Inp Lib "inpout32.dll" _
Alias "Inp32" (ByVal PortAddress As Integer) As Integer
Public Declare Sub Out Lib "inpout32.dll" _
Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)
Out (address, value)
Variable = Inp (address)
good luck,
bob
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|