i need help!, im trying to interface a IC decoder 7447 to visual basic using parallel port. When i run it, suddenly their is a pop- up error coming from visual basic. here is the pop error..
AppName: vb6.exe AppVer: 6.0.81.76 ModName: inpout32.dll
ModVer: 0.0.0.0 Offset: 00005c0b
my OS is micrsoft service pack 3 and already have an inpout32.dll
here is my SoureCode and Module
Private Sub Command1_Click()
If Len(Text1.Text) = 1 Then
Out& H378, Asc(Text1.Text)
ElseIf Len(Text1.Text) = 0 Then
MsgBox "Input a Character!!", vbCritical, "Error"
Text1.SetFocus
Else
MsgBox "you should input only one character!", vbCritical, "Error"
Text1.SetFocus
End If
End Sub
Private Sub Command2_Click()
Out& H378, 0
Text1.Text = " "
End Sub
Module
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)
2007-09-08
17:51:06
·
2 answers
·
asked by
dell
1