|
-
Nov 27th, 2001, 09:14 AM
#1
Thread Starter
New Member
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
-
Nov 27th, 2001, 09:48 AM
#2
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) )
-
Nov 28th, 2001, 05:21 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|