Results 1 to 3 of 3

Thread: Is my io problem just an API call away?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    West Wales
    Posts
    1

    Lightbulb Is my io problem just an API call away?

    I have an old ISA output board that I built some years ago with 8 relays on board which are controlled from QBasic by:

    OUT (hex address), (hex data)

    the data parameter selects which combination of relays are switched on/off.

    I am trying to figure out how to achieve the same effect in VB6 and suspect it may involve some API calls which I have managed before. Does any kind soul have the time to pont me in the right direction?

    Chris

  2. #2
    jim mcnamara
    Guest
    you can use rtlMoveMemory. I made up a 'hex address'

    Code:
    Private Declare Sub RtlMoveMemory Lib "kernel32.dll" _
    (Destination As Any, Source As Any,ByRef Length As SIZE_T )
    Dim t as string
    x=strptr(t)
    hexaddress = &H0044
    rtlMoveMemory( hexaddr,x , lenB(t) )

  3. #3
    sunnyl
    Guest
    You might want to try this DLL at www.lvr.com/parport.htm The DLL is originally designed to give IO to the parallel port, but since it can take the port number as a parameter, it is the same as the INP and OUT statements in QB.

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