Sunday, August 2, 2009

How can i interface a Visual Basic 6.0 to 7447 Decoder using parallel port.?

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%26amp; 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%26amp; 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)

How can i interface a Visual Basic 6.0 to 7447 Decoder using parallel port.?
Don't know if this will help but you have "out%26amp; H378". Does this matter? Shouldn't it be "out %26amp;H378"?


No comments:

Post a Comment