_lr_
asked on
Read/Write to Paralel port
How do i read/write to the paralel port without using asm(in/out).
Thanks
_LR_
Thanks
_LR_
ASKER
With componet, there isn't any there that alows the read and write from/to the paralel port
_LR_
_LR_
it's possible to use the standard file functions to read/write the parallel port
use
CreateFile( 'LPT1:',GENERIC_READ + GENERIC_WRITE,
0 , nil, OPEN_EXISTING, 0 + FILE_FLAG_WRITE_THROUGH, 0 );
to open a file handle, after that you can use the ReadFile() and WriteFile() functions
good luck
use
CreateFile( 'LPT1:',GENERIC_READ + GENERIC_WRITE,
0 , nil, OPEN_EXISTING, 0 + FILE_FLAG_WRITE_THROUGH, 0 );
to open a file handle, after that you can use the ReadFile() and WriteFile() functions
good luck
If you need to access the port on NT then you may need this freeware
that gives you access http://www.internals.com/utilities/winio.zip I have
a unit to make it easier to use... just let me know if you need that :-)
that gives you access http://www.internals.com/utilities/winio.zip I have
a unit to make it easier to use... just let me know if you need that :-)
or
http://www.wideman-one.com/gw/tech/Delphi/iopm/index.htm
+ some good texts at that site for io programming.
:-)
http://www.wideman-one.com/gw/tech/Delphi/iopm/index.htm
+ some good texts at that site for io programming.
:-)
Hi inthe :-)
That is a GREAT link!
That is a GREAT link!
gwena - it's absolutely the wrong way to use such a driver for accesing the parallel port on NT/W2K!
NT/W2K have two standard drivers for both the seriell and the parallel ports which can be accessed in the described way. So if you use another driver, then two drivers accessing the same hardware - not a very good idea.
Such I/O drivers are only good for non standard hardware, which have no NT/W2K drivers.
if someone is interested in german resources look here:
http://www.nt-treiberentwicklung.de/kapitel5.htm
good luck
NT/W2K have two standard drivers for both the seriell and the parallel ports which can be accessed in the described way. So if you use another driver, then two drivers accessing the same hardware - not a very good idea.
Such I/O drivers are only good for non standard hardware, which have no NT/W2K drivers.
if someone is interested in german resources look here:
http://www.nt-treiberentwicklung.de/kapitel5.htm
good luck
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
" without using asm(in/out) "
strange answer you accepted there ...
strange answer you accepted there ...
http://www.geocities.com/CapeCanaveral/9646/compoent.htm