Re: parallel & serial port questions
From: John Phillips (jjphillipsREMOVE_at_REMOVEhotmail.com)
Date: 05/07/04
- Next message: Lynn McGuire: "Re: Using the Parallel Port Interrupt"
- Previous message: Pavel Lebedinsky: "Re: not being notified of unhandled exceptions when using BindIoCompletionCallback"
- In reply to: Lem: "parallel & serial port questions"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 7 May 2004 18:24:01 -0400
You can open a serial port or parallel port by specifying \\.\COM1 or
\\.\LPT1 respectively (these examples open the first serial and parallel
port on the system, adjust the numbering as required).
For serial communication, you need to configure the port. Check out the
"Communication Functions" section of MSDN.
There are some "gotchas" when trying to use parallel ports. Google for the
rather lengthy "Parallel Port" thread in this group about a year ago.
-- John Phillips MVP - Windows SDK "Lem" <hjlem@pacific.net.sg> wrote in message news:%232i3iyDMEHA.3712@TK2MSFTNGP11.phx.gbl... > How do I write directly to the printer, ie, to createfile on the parallel > port and write directly to it. Is it possible? > What is the filename parameter for the COM1 serial port in createfile()? > Where can I find the respective filenames for the communication devices? > The Win32sdk help does not seem very helpful. > > Thanks in advance > Lem > >
- Next message: Lynn McGuire: "Re: Using the Parallel Port Interrupt"
- Previous message: Pavel Lebedinsky: "Re: not being notified of unhandled exceptions when using BindIoCompletionCallback"
- In reply to: Lem: "parallel & serial port questions"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|