Re: serial port communuication



Are you using SetCommState on the port ?

If so, are you first doing a GetCommState ? This sets up the DCB structure to valid values

"hari" <haricibi83@xxxxxxxxx> wrote in message news:1171455246.402743.203120@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi all,

I m communicating to a printer device through serial port.It
is failing to open the port,but when I disable and enable the com port
in device manager,it works fine(i.e)it communicates with the printer
and reads the configuration settings of the printer).


Regards
Hari

.



Relevant Pages

  • Re: serial port communuication
    ... This sets up the DCB structure to valid values ... "hari" wrote in message ... I m communicating to a printer device through serial port.It ...
    (microsoft.public.vc.mfc)
  • Re: serial port communuication
    ... This sets up the DCB structure to valid values ... "hari" wrote in message ... I m communicating to a printer device through serial port.It ...
    (microsoft.public.vc.mfc)
  • Re: serial port communuication
    ... I m communicating to a printer device through serial port.It ... is failing to open the port,but when I disable and enable the com port ...
    (microsoft.public.vc.mfc)
  • Re: serial port communuication
    ... Leaving the port "opened" has no meaning if the program terminates, ... I m communicating to a printer device through serial port.It ...
    (microsoft.public.vc.mfc)
  • Re: serial port communuication
    ... you can use::GetLastError to find out why it is failing ... "hari" wrote in message ... I m communicating to a printer device through serial port.It ...
    (microsoft.public.vc.mfc)