问题描述
您好,
我正在使用Windows桌面应用程序。但该应用程序是单线程应用程序。
I am working on a Windows Desktop application. But that application is single-threaded application.
我正在寻找一种解决方案来创建一个单独的多线程服务器,它将充当该桌面应用程序和客户端之间的中间件。
I am looking for a solution to create a separate Multi-threaded Server which will act as a middle ware between that Desktop application and clients.
我是Windows API和C#的新手。实现这一目标的最佳方法是什么?
I am new to Windows APIs and C# also. What is the best way to achieve this?
提前感谢您!
问候,
Navnath Kumbhar。
Navnath Kumbhar.
推荐答案
您编写的应用程序类型无关紧要(单线程,多线程,基于对话框)。您的应用程序可以发送消息到您的"服务器应用程序"并从您的服务器应用程序接收消息。
It doesn't matter what kind of application you write (single-, multi-threaded, Dialog based). Your application can send messages to your "Server application" and receive messages from your Server application.
将消息作为Windows消息或保存在数据库中的消息,并再次从您的应用程序中读取结果。
Messages either as Windows messages or messages that are saved in a database and the result is read from your app again.
问候,Guido
这篇关于创建独立的多线程服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!