Re: parallel & serial port questions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Phillips (jjphillipsREMOVE_at_REMOVEhotmail.com)
Date: 05/07/04


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


Relevant Pages

  • Re: XON/XOFF communication problem
    ... >Before running the script I have set the port with the command: ... >communication code? ... systems to do computer to computer serial port comm at 115.2Kbps ... testing them by talking to a modem at 57.6Kbps. ...
    (comp.os.linux.misc)
  • Re: about serial port communication and new operator
    ... problem 1)i am opening the com port for serial communication ... This is expected behavior from a serial port. ... Why do you think your CString is 8-bit characters, ...
    (microsoft.public.vc.mfc)
  • Re: printer not printing
    ... It appears to send the order to the desktop computer, but it just lands in a queue and doesn't print. ... Is there a document showing in queue after clicking on Test Page, and does it eventually go away, or do you have to manually clear the queue? ... I did some troubleshooting through HP Help, and at this point it suggests using another printer port if there is one (I don't think there's another parallel port on this computer) or uninstalling the port and letting Windows reinstall it. ...
    (microsoft.public.windowsxp.hardware)
  • Re: printer not printing
    ... It appears to send the order to the desktop computer, ... just lands in a queue and doesn't print. ... using another printer port if there is one (I don't think there's another ... parallel port on this computer) or uninstalling the port and letting ...
    (microsoft.public.windowsxp.hardware)
  • Re: Parallel Port Interface between PIC and PC
    ... >>which would then transmit the readings to the laptop on the robot. ... >> the laptop has two ports, a USB port and a parallel port. ... > on a desktop with a real serial port before committing to the USB to ...
    (comp.arch.embedded)