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...
Printable View
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...
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:
good luck,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)
bob