>can some body tell me how to
>send a byte or data to the LPT (&H378) port
>i have used outport() in C++
>and
>OUT port, data
>in QBASIC
>for those who dont know, it send data to the printer port eg u need there 01100110 ie 102 in decimal u will
>OUT &H378, 102
>
Direct access to the port requires that you use the Windows API to direct the output; opening a port for output as a file and using PRINT goes through the spooler. Pick up a copy of Dan Appleman's "Visual BASIC Programmer's Guide to the Win32 API" for a good summary of the process.
It's not safe to use direct port writing under NT and Win2K, which completely virtualize the I/O ports for a process, and may result in any of several I/O exception errors.
>any help will be highly appriciated.
>thanks
>rafiq