如何连续读取调制解调器 [英] How to read modem continuously

查看:96
本文介绍了如何连续读取调制解调器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我开发了win应用程序以从Modem读取消息,然后成功运行,但我必须一次又一次执行应用程序才能读取modem.我想要做的是使应用程序连续运行并读取消息,并在收到任何新消息时自行调用它?

Hi every one,

I developed win application to read messages from Modem it runs successfully but i have to execute application again and again to read modem.What i want is to make application that runs continuously and read messages and invoke it self when ever any new message arrives? what strategy i should use for this.?

推荐答案

如果您有一个应用程序需要一遍又一遍地执行相同的操作,则需要包装该功能在某种循环中.在循环的每次迭代中,执行调用时的读取"操作.
If you have an application that needs to perform the same action over and over again, then you need to wrap that functionality in a loop of some kind. On every iteration of the loop, perform the "read" as you call it.


这篇关于如何连续读取调制解调器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆