# Re: 请教 inpout32.dll 读取方式

Posted by Henk Wu on August 12, 1999 at 18:45:20:

In Reply to: 请教 inpout32.dll 读取方式 posted by Henk Wu on August 11, 1999 at 17:58:10:

: 'Inp and Out declarations for direct port I/O
: 'in 32-bit Visual Basic 4 programs.

: 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)
: 问题: Inp32 读取 I/O 时, 其读值只显示 Byte 值 ,请问如何设定才能读取
: Word 值?
: ex: 若以 BC++ 实际读 I/O 值为:0x1234
: 但以 (vb6.0/6.0) inpout.dll 之inp32 读 I/O 值则为 0x0034
: @.请问 VB 如何能读取传回值 = 0x1234

Follow Ups: