DEVELOP > c-Plus-Plus > How to generate a EV_RING event in rs232 serial COM port? visual c++ 6.0
| Topic: |
DEVELOP > c-Plus-Plus |
| User: |
"Laura Lucas" |
| Date: |
07 Oct 2004 03:13:10 PM |
| Object: |
How to generate a EV_RING event in rs232 serial COM port? visual c++ 6.0 |
Hi
I'm working with visual C++ 6.0
I can detect when an EV_RING event is generated with:
BOOL WaitCommEvent(
HANDLE hFile, // handle to communications device
LPDWORD lpEvtMask, // pointer to variable to receive event
LPOVERLAPPED lpOverlapped, // pointer to overlapped structure
);
I want to SEND an EV_RING event, generate it.
Any idea as to how to do it?
I can send characters, but not this particular RING event.
Thank you!
Laura Lucas
.
|
|
| User: "Victor Bazarov" |
|
| Title: Re: How to generate a EV_RING event in rs232 serial COM port? visualc++ 6.0 |
07 Oct 2004 03:35:21 PM |
|
|
Laura Lucas wrote:
Hi
I'm working with visual C++ 6.0
I can detect when an EV_RING event is generated with:
BOOL WaitCommEvent(
HANDLE hFile, // handle to communications device
LPDWORD lpEvtMask, // pointer to variable to receive event
LPOVERLAPPED lpOverlapped, // pointer to overlapped structure
);
I want to SEND an EV_RING event, generate it.
Any idea as to how to do it?
I can send characters, but not this particular RING event.
Please post MS Windows programming questions to the newsgroup where
they are on topic: comp.os.ms-windows.programmer. Another choice is
the VC++ newsgroup: microsoft.public.vc.language (although yours is
not really a _language_ problem, is it?)
V
.
|
|
|
| User: "Laura Lucas" |
|
| Title: Re: How to generate a EV_RING event in rs232 serial COM port? visual c++ 6.0 |
08 Oct 2004 11:32:25 AM |
|
|
Victor Bazarov <v.Abazarov@comAcast.net> wrote in message news:<dMh9d.4096> > I'm working with visual C++ 6.0
I can detect when an EV_RING event is generated with:
BOOL WaitCommEvent(
HANDLE hFile, // handle to communications device
LPDWORD lpEvtMask, // pointer to variable to receive event
LPOVERLAPPED lpOverlapped, // pointer to overlapped structure
);
I want to SEND an EV_RING event, generate it.
Any idea as to how to do it?
I can send characters, but not this particular RING event.
Please post MS Windows programming questions to the newsgroup where
they are on topic: comp.os.ms-windows.programmer. Another choice is
the VC++ newsgroup: microsoft.public.vc.language (although yours is
not really a _language_ problem, is it?)
Ok sorry, I will post my message to that groups too. So, in c++, any
function or method or anything to send something to a serial rs232 COM
port is inexistent? There isn't anything multiplatform? :S
thanks!
Laura Lucas
.
|
|
|
| User: "Alf P. Steinbach" |
|
| Title: Re: How to generate a EV_RING event in rs232 serial COM port? visual c++ 6.0 |
08 Oct 2004 11:45:12 AM |
|
|
* Laura Lucas:
Ok sorry, I will post my message to that groups too. So, in c++, any
function or method or anything to send something to a serial rs232 COM
port is inexistent? There isn't anything multiplatform? :S
The language (discussed here) and what you can use it for (discussed
in other groups) are different things. C++ is a general purpose
programming language and can be used for just about anything. We need
to limit the scope of discussion to avoid the "just about anything".
Your question is off-topic here.
See the FAQ and Shiva's welcome text.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
.
|
|
|
|
| User: "Victor Bazarov" |
|
| Title: Re: How to generate a EV_RING event in rs232 serial COM port? visualc++ 6.0 |
08 Oct 2004 11:35:13 AM |
|
|
Laura Lucas wrote:
[...] So, in c++, any
function or method or anything to send something to a serial rs232 COM
port is inexistent? There isn't anything multiplatform? :S
Of course there isn't. Hardware is _always_ OS-specific.
.
|
|
|
|
|
|

|
Related Articles |
|
|