Parallel port programme

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rockford333
    New Member
    • Sep 2006
    • 15

    #1

    Parallel port programme

    I have written a programm for fetching data from parallel port but data is not coming.
  • axtens
    New Member
    • Dec 2006
    • 32

    #2
    Please post your code. It's hard to fix something one cannot see.

    Kind regards,
    Bruce.

    Comment

    • rockford333
      New Member
      • Sep 2006
      • 15

      #3
      Originally posted by axtens
      Please post your code. It's hard to fix something one cannot see.

      Kind regards,
      Bruce.
      here is my code

      Code:
      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)
      i am writing this code in timer.
      Text4 = Inp(&H379)
      Out &H378, 3

      Comment

      • sashi
        Recognized Expert Top Contributor
        • Jun 2006
        • 1749

        #4
        Originally posted by rockford333
        here is my code

        Code:
        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)
        i am writing this code in timer.
        Text4 = Inp(&H379)
        Out &H378, 3
        Hi there,

        Kindly refer to the below attached link for further reading & understanding, hope it helps. Good luck & Take care.

        Parallel port programming

        Comment

        • bass29
          New Member
          • Jan 2007
          • 2

          #5
          i think you should declare a storage location for the value first.

          Comment

          Working...