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



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

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

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




  Page 1 of 1

1

 


Related Articles
Reading COM port - Attaching an event or interrupt for arrival of new data?
tutorial for using COM in c++
http://www.jobz-online.com - jobs in India, india jobs
Transmit data through COM port in Visual C++
Use com component without registering it ?
Can't make a COM Object external
www.bidfraud.com "Grand Opening" -- Read Inside for capabilities
COM mechanism - please help!
From COM Server(VC++) Can we call functions in the Activex Control (OCX file).
$2.00 Bonus signup from Goldscity.com.
Using C# DLL in VC++ 6 application via Com
Some Free Good E-books For You(You can buy them In amazon.com!)
Newly Updates on HoT (http://www.homeoftester.com)
top aaaaaa+ quality replica bag lv cd chanel gucci prada tods marc jacobs just need us$120 selltopgoods.com
need help while designing yahoo messenger like yahoo and msn , like on meebo.com
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER