Results 1 to 2 of 2

Thread: QBasic Functions in VB...

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 1999
    Location
    Zagreb, Croatia
    Posts
    5
    I need OUT and INP function in VB6.0 I don't know which functions to use, OUT and INP are not in VB, those functions are from QBasic, or which control to use ?
    They are for I/O port...


  2. #2
    Hyperactive Member
    Join Date
    Sep 1999
    Posts
    305
    go to http://www.lvr.com/parport.html You will find something called inpout16.zip (or inpout32.zip if you want it in 32 bit). These have .dlls that will let you do inp and out. There is documentation, too. Basically, the code looks like:

    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)
    
    Out (address, value)
    Variable = Inp (address)
    good luck,

    bob

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width