English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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 in Computers & Internet Programming & Design

2 answers

Don't know if this will help but you have "out& H378". Does this matter? Shouldn't it be "out &H378"?

2007-09-08 19:20:40 · answer #1 · answered by Captain Mephisto 7 · 0 0

this is extra troublesome than you think of. present day OSs block person mode courses from having direct hardware get admission to. You first want a kernel driving force that offer you the mandatory hardware get admission to. this is the case for the two Linux and residing house windows (and that i might suspect the comparable for MacOS). There are some prevalent drivers that basically divulge hardware get admission to to person mode courses, yet you may desire to learn the API for that driving force.

2016-10-18 09:42:23 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers