如何避免每个客户端弹出相同的消息框? [英] How can I avoid the same message box popup from each client?

查看:70
本文介绍了如何避免每个客户端弹出相同的消息框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台服务器和一些在同一台计算机上运行的客户端.服务器崩溃时,每个客户端都会显示一个有关服务器崩溃的消息框.在这种情况下,一条消息就足够了.
如何避免每个客户端弹出相同的消息框?
谢谢
Merh

I have a server and some clients which are running on the same computer. When the server crashes, each client displays a message box about the server crash. In that case it is enough with one message.
How can I avoid the same message box popup from each client?
Thanks
Merh

推荐答案


在这种情况下,如果服务器崩溃,则可以使用这种简单的技巧,通过服务器崩溃消息发送ShowMessage标志并将其作为true发送给仅一个正在运行的客户端.对于其他人,则将值发送为false.
Hi,
In this you can use this simple hack, if your server crashes, with server crash message send ShowMessage flag and send it as true to only one running client. For others send value as false.


您不能,每个程序都是独立的,并且将显示自己对已发生事件的看法.
You can''t, each program is separate and will show its own view of what has happened.


这篇关于如何避免每个客户端弹出相同的消息框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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