How to Enable Visual Basic to have control over your Parallel Port.
First you need the (VBASM.DLL) for 16 bit Visual Basic. If you have a 32 bit Verision then you need (WIN95IO.DLL) before you download the .DLL file search your system for it. If you have the file it should be in the windows/system folder of your system.
Click here to download the .DLL files
The Declare scripts to use your Parallel port.
16 bit Visual Basic
Declare Function vbInp Lib "VBASM.DLL" (ByVal nPort As Integer) As Integer
Declare Sub vbOut Lib "VBASM.DLL" (ByVal nPort As Integer, ByVal nData As Integer)
32 bit Visual Basic
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 vbInp Lib "WIN95IO.DLL" (ByVal nPort As Integer) As Integer
|