Re: serial port communuication
- From: Fenster <fenster@xxxxxxxxxxxxx>
- Date: Thu, 15 Feb 2007 07:21:18 +0000
In message <OmuisKHUHHA.4028@xxxxxxxxxxxxxxxxxxxx>, Ian Semmel <anyone@xxxxxxxxxxxxxxxxx> writes
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@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxHi 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
I would be wary of using/trusting GetCommState(), lots of people seem to have problems with this function, see other threads/newsgroups.
--
Fenster
.
- Follow-Ups:
- Re: serial port communuication
- From: Ian Semmel
- Re: serial port communuication
- From: Joseph M . Newcomer
- Re: serial port communuication
- From: hari
- Re: serial port communuication
- References:
- serial port communuication
- From: hari
- Re: serial port communuication
- From: Ian Semmel
- serial port communuication
- Prev by Date: I need to work with CListView
- Next by Date: How to overlap controls in a dialog?
- Previous by thread: Re: serial port communuication
- Next by thread: Re: serial port communuication
- Index(es):
Relevant Pages
|
Loading