I want to use the parallel port to remote control some applications
right now I do a while(1) loop with
y=_inp(0x3bd);
and for example
if ((y&8)==8)
to check the error line
which is quite bad
Somebody told me that I have do write a VxD or something
HOW?
Do I really need it?
doesn't something yet exist for this purpose?
Thanx
Patrick
Win95 allows applications (DOS, Win16 and Win32) to access I/O ports
freely *unless* a VxD has trapped the I/O port. While many of the I/O ports used
by standard PC devices are indeed trapped by VxDs, Windows does *not*
trap the parallel port I/O ports.
So your application may use code like the above.
We have discussed this before, but what did we conclude? The VPD does
trap application-level access to parallel ports and then disables this
trapping. However, there are circumstances in which the trapping gets
enabled again.
Does it matter in practice, though? Isn't the usual concern that IN and
OUT instructions are not legal in a Win32 application, so that using
them might result in the system's preemptive termination of the
application? If an IN or OUT instruction traps to the system but gets
emulated, then that will often be fine - and indeed, will often be what
is wanted.
----
Geoff Chappell
Consulting Software Analyst
email: geo...@ozemail.com.au
web: http://www.ozemail.com.au/~geoffch
Now, if you're using EPP/or ECP, you'll need your own VxD to use interrupts
and/or DMA.
Richard Van Fossan
Microsoft Developer Support
Patrick Clauberg wrote in message <36d8122b...@129.217.240.1>...
>Hi,
>
>I want to use the parallel port to remote control some applications
>
>right now I do a while(1) loop with
>
>y=_inp(0x3bd);
>
>and for example
>
> if ((y&8)==8)
>to check the error line
>
>which is quite bad
>
>Somebody told me that I have do write a VxD or something
>