Re: Need to read PAR PORT data bits URGENT
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Sun, 06 Jul 2008 21:06:17 -0400
First, using the parallel port for anything is intrinsically dangerous. The standard
parallel port driver does not support reading from it. (Besides, modern machines don't
have parallel ports). You will have to search using google for a parallel port driver
that supports reading...they are out there. Whether or not you can make an online
purchase tonight is problematic.
I have no idea what CParallelPort is, but it sounds like one of those gross hacks from
MS-DOS. Even if it could build, it almost certainly wouldn't work. It probably tries to
do IN and OUT instructions on the parallel port address, which cannot work in a real
operating system.
Note also that connecting a rotary switch is dangerous because the make/break can cause
voltage surges in the drivers which will fry them. Unless you have signal conditioning
circuitry you are at risk.
joe
On Sun, 6 Jul 2008 16:42:01 -0700, "nappy" <n@xxx> wrote:
I have never read a parallel port in MFC yet. I need to read the input dataJoseph M. Newcomer [MVP]
on the port tonight for a dog and pony tomorrow. I tried the CParallelPort
class but it didn't build and seems more than I really needed.. I am just
reading the state of the bits as there is a rotary switch connected to
them..
ANy links or methods.. AM I missing the obvious?
Thanks again all.
Nappy
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: Need to read PAR PORT data bits URGENT
- From: nappy
- Re: Need to read PAR PORT data bits URGENT
- References:
- Need to read PAR PORT data bits URGENT
- From: nappy
- Need to read PAR PORT data bits URGENT
- Prev by Date: Re: 32-bit programs on Windows x64
- Next by Date: Re: 32-bit programs on Windows x64
- Previous by thread: Need to read PAR PORT data bits URGENT
- Next by thread: Re: Need to read PAR PORT data bits URGENT
- Index(es):
Relevant Pages
|
Loading