How to generate a EV_RING event in rs232 serial COM port? visual c++ 6.0

L

Laura Lucas

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
 
V

Victor Bazarov

Laura said:
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
 
L

Laura Lucas

Victor Bazarov said:
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
 
V

Victor Bazarov

Laura said:
[...] 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.
 
A

Alf P. Steinbach

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top