using dlportio
the inpoute its easy used on VB my friend, just download the DLLS here for your OS:
http://www.lvr.com/ <--- theres a lot of info of HOW to make work with COMM,LPT,USB,etc and The DLL to download( Inpout32.dll , just copy and paste on folder of System of your OS)
heres an example of how to use these simple DLL
Jus create a Form and a Command and paste these on the form)
Private Declare Function Inp Lib "inpout32.dll" _
Alias "Inp32" (ByVal PortAddress As Integer) As Integer
Private Declare Sub Out Lib "inpout32.dll" _
Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)
Dim port As String
Private Sub Command1_Click()
Out port, 255 'heres the d0-d7 bits(1 or 0) to Recive or transmit
End Sub
Private Sub Form_Load()
Port = &H378 <-- your port
End Sub
Also, You can see the easy way to send or receive info to the(in this case) printer ports
Just remember that the info its going on port 378(d0-d7) theres too the status(379) and the controll (37A)ports for other things...
Heres more info about LPT:
**broken link removed** .
Regards