Re: Need to read PAR PORT data bits URGENT



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 data
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

Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.



Relevant Pages

  • Re: Explain this about threads
    ... How can you ensure an average data rate but not ensure it will not be to fast? ... If you average over a long enough time period, it's trivial to achieve any arbitrary average. ... What Windows programs are you talking about that use this library to access the CPU's i/o port directly, rather than going through CreateFile to access the parallel port? ... It uses the built-in Windows parallel port driver, and relies on that driver to deal with the low-level issues. ...
    (microsoft.public.dotnet.languages.csharp)
  • ~~~~~~~~~~~~~~~ PARALLEL PORT ~~~~~~~~~~~~~~~
    ... qbasic parallel port programs ... usb parallel port adaptor ... parallel printer port to usb adapter ... logitech quickcam parallel port driver ...
    (sci.psychology.personality)
  • Re: Printing in CE.NET without drivers
    ... The parallel port is not supported in the emulator, ... If your device has a parallel port driver then it may wll be LPT1: ... > the windows ce emulator but always get an "device not existe" windows ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Printer Port Dongle (XP SP2 refuses to work with it...)
    ... I know nothing about One CNC. ... What sort of parallel port key does it use? ... unrelated pieces of software that use a Sentinel parallel port driver from ... > dongle in the printer port. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Parallel Port Service Failed to Start
    ... "JML" schreef in bericht ... > There is no Parallel port driver service listed in services that I could ...
    (microsoft.public.windows.server.sbs)

Loading