On Sun, Nov 10, 2002 at 02:48:38AM -0800, Vitaliy Vasylskyy wrote:
> About parallel port.. There is one way that works in Windows 98,
> without writing device driver... It's direct port addressing, e.g.
>   Asm
>     Mov DX,DataPort; {0x378 for LPT1 or 0x278 for LPT2}
>     Mov AL,Data;
>     Out DX,Al;
>   end,
>   
> but the only OS when it's supported is Windows 98. And actually it's
> considered to be ignorant, but it works.

There are solutions for W2k, XP also
Parallelport 
 http://www.repairfaq.org/filipg/HTML/LINK/PORTS/F_PARALLEL1.html
 http://www.geocities.com/ResearchTriangle/Forum/8070/ntdriver.zip (parallel port with 
NT, XP)
 http://www.lvr.com/jansfaq.htm (FAQ)

But I would not recommend to do it this way and I think you do not need to
write a "real driver". You should only access your application at the
parallel port from within your application. This makes the things a lot
easier.
 But however, modern (legacy free) PC's do not have serial or parallel ports
at all. But the good news; that ports will be available too - as USB printer
cable or USB RS232 cable. If you access this devices over the Windows API,
it does not matter where the serial or parallel port is - at the main board
or at the USB bus. The information how to do this is available at
microsoft.com (but do not ask me where ;-).
 I would suggest to access your devices only this way (CreateFile, ReadFile, 
WriteFile, DeviceIoControl..) and you are sure that you can use your
software in the future too (e.g. with one of the new exiting tablet PCs :-).

        Matthias
-- 
Author: Matthias Weingart
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB CHIPDIR-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to