We can’t program by using Visual Basic, then connecting through Parallel port directly. We have to create DLL (Dynamic LInk LIbrary) file in order to borrow function connecting I/O port of the other languages to use. We can program by using functions that can connect port. In this article, I will present programming by C++ first. For someone who likes to program by Borland Delphi, click here. Let’s begin program DII file by MS VC++6 by using function connect with Input and Output of port like this,

  1. _Inp that is function that will read value from input port’s position that has the function like this,

_Inp = read value as byte, we will set function name in order to be use in VB- - - > inpVB

_Inpw = read value as word, we will set function name in order to be used in VB - - - > inpwVB

_Inpd = read value as double words, we will set function name in order to used in VB - - - > inpdwVB Read the rest of this entry »