• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Reading data from COM PORT in asynchronous mode.

I am using VC++ 6.0. I want a application to read data from COM port
whenever it comes, immediately I want to write in text file. It should work 24 hours. I copied source code from MSDN Library:- Serial Sample: Communications
Demonstration,The COMM sample (TTY) demonstrates using the Win32
communications functions while maintaining a common code base with
16-bit Windows code

I modified as my requirement. If I run it, it is reading and writing.
Suppose if I minimize the window or open some other application like word
it is not reading and writing. What is problem? How to over come from this?
Is it possible to write a application to run in background?

1 Solution
Vinayak KumbarSr Program ManagerCommented:

here is the sample code that spies COM1 and COM2 running in background. Take a look at it.


Hope that helps.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now