I'm just a beginner in VB.
I need to know how to control the parallel port through the USB to parallel converter. Anyone able to advise me?
OS - Windows 7
VB - Visual Basic 2008 Express
In my device manager, it show the converter as 'USB printing support'. Is it the driver problem?
I have downloaded DllPort.dll and placed it in 'System32' folder.
Module Module1
Public Declare Sub Out Lib "DllPort.dll" Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)
End Module
Public Class Form1
Dim PortData
Const AddressLPT1 = &H378
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Call Out(AddressLPT1, &H0)
End Sub
End Class
I need to know how to control the parallel port through the USB to parallel converter. Anyone able to advise me?
OS - Windows 7
VB - Visual Basic 2008 Express
In my device manager, it show the converter as 'USB printing support'. Is it the driver problem?
I have downloaded DllPort.dll and placed it in 'System32' folder.
Module Module1
Public Declare Sub Out Lib "DllPort.dll" Alias "Out32" (ByVal PortAddress As Integer, ByVal Value As Integer)
End Module
Public Class Form1
Dim PortData
Const AddressLPT1 = &H378
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Call Out(AddressLPT1, &H0)
End Sub
End Class
Last edited: