inpout32.bas
Add a new module to your project and call it inpout32.bas (or just download it from
www.lvr.com - it comes as part of the Parallel Port Complete disk/book - The book is really really useful, I've got 2 of Jan's books and I'm about to order a third).
In the module you need to put the following code:
'Inp and Out declarations for port I/O using inpout32.dll.
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)
This declares the functions in the dll, you will need to do this for all your projects. I suggest you keep a copy of inpout32.dll in c:\windows\system\ or just the windows dir. (It might work from the drivers folder but I'm not sure).
Hope this helps.
Matthew