473,401 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

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
Jul 22 '05 #1
4 2994
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
Jul 22 '05 #2
Victor Bazarov <v.********@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
Jul 22 '05 #3
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.
Jul 22 '05 #4
* 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?
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chris | last post by:
Here's the situation: I work at a scientific institution and I have a portable electronic device which is used to take measurements. The device produces a very small amount of numerical data,...
1
by: Dan | last post by:
I wnat to see in browser an status from an device connected on rs232 port The java class for read from serial port is: //Serial.java import java.io.*; import java.util.*; import...
4
by: nchap99 | last post by:
hello, Does anybody know if Microsoft Dot Net supports the RS232 type of connection. As far as I know Visual basic 6 supports RS232 connection format. Thanks,
6
by: Peter Hans | last post by:
Hi, I developed two applications to test a flush() method in my application, but I am having some problems when running it at high baud rates (115200) I connected two computers using a...
6
by: Ken Breit | last post by:
I am using the RS232.vb class to talk to the serial port. The problem I am having is when I try to read if anything is on the comm port. I call the read method, with the number of bytes I am...
3
by: Przemo | last post by:
Hi, Do you know some good RS232C class? There is one in VB.NET 101 Examples, but I think it is poor. 1. I can't for e.g. read into my application all data received. I must tell how many...
2
by: Wouter van Teijlingen | last post by:
Dear Readers, I was reading about how to control the COM and LPT port using VB .NET. I've found a lot of information, and it was very useful to me. I found an example program on the site of...
13
by: jay.dow | last post by:
I want to write to the pins of an RS232 without using the serial protocol. The use would be every pin could act to complete a circuit in customized hardware. I could use python to communicate...
4
by: Dave Harry | last post by:
I found the RS232 class from MS's 101 VB samples. Writing to the port works fine. (I've got hyperterminal on the other comm port and a crossover cable between COM1 and COM2) The port is opened...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.