Link to home
Start Free TrialLog in
Avatar of murugaiah
murugaiah

asked on

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?


ASKER CERTIFIED SOLUTION
Avatar of Vinayak Kumbar
Vinayak Kumbar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial