Today i'm writing to connecting to the parallel port . After connecting to it the LEd needs to be on for that i 'm follwing the steps.
1) download inpout32.dll --> and place them in BIn folder of my project .
2)and code i ihave writeen in my main form
as
Module InpOut32_Declarations
'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
Public Declare Sub Out Lib "inpout32.dll" Alias "Out32" (ByVal PortAddress As Short, ByVal Value As Short)
End Module
3) using that dll i'm tring to write the data
OUT(888,255) -- passing data to all parallel port to switch on LED.
i dont' know what wrong in this>...? could you please tell me .