Port parrallèle

progzman - 17 juil. 2000 à 12:02
 Boumbo - 14 juin 2001 à 18:55
comment fait-on pour acceder au port parrallèle en VB ? je voudrait pouvoir détecter si une broche est allumée
merci

1 réponse

Attribute VB_Name = "inpout"

'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)

dans ton prog: inp port out port , valeur

Boumbo
cyr_bx@yahoo.fr
0
Rejoignez-nous