I want to write to parallel port to drive a device. In the code, I use run
time library function _outp() to write to D0 as following:
_outp(0x378, 0x01);
I got an exception: "privileged instruction"
Looks like it doesn't like me to write to the port directly. I'm using
WinXp/Win2000. Any ideas to write to parallel port?
Eric.
scud - 24 Nov 2004 10:29 GMT
i think in win NT or higher OS the parallel port in 'lock' for security
reason. in order to communicate with it u need a driver to do that.