Whats my LTP port addr in VB Short?

Associate
Joined
23 Oct 2004
Posts
2,441
Location
Brighton
Howdy,

I am using inpout32.dll to access my parallel port via VB and XP.

When the port is 0379 (VB) &H379S (378+1 cos I need to access the ststus pins) everything is fine.

___________________________________________________________

'Inp and Out declarations for port I/O using inpout32.dll.
Public Declare Function Inp Lib "inpout32.dll" Alias "Inp32" (ByVal PortAddress As Short) As Short

MyValue = Inp(&H378S)

___________________________________________________________

BUT.....

If I try this on a PC that has no on-board parallel port but an add in PCI card, how do I get the I/O port address?

It is:

BC00-BC07

I would have thought that using &HBC01S in VB would work, but nope nada!

Any one got any ideas?

Ta.
 
Back
Top Bottom