如何使我的c ++ Windows应用程序在代码级别可用于局域网中的其他计算机? [英] How can I make my c++ windows application available for other computers on the local area network at code level?

查看:85
本文介绍了如何使我的c ++ Windows应用程序在代码级别可用于局域网中的其他计算机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开发了一个Windows应用程序,并且希望使它可以在网络上以代码级别供网络上的其他计算机访问,以便他们可以运行它.这可能吗?如果是的话,我该怎么做?如果在代码级别上不可能,那么如何通过操作系统设置使之成为可能.

I just developed a windows application, and I want to make it accessible to other computers on the network , at code level, so that they can run it.Is this possible? If it is how do I do this?. If it is not possible at code level, how do I make it possible through operating system setting.

推荐答案

只需将您的应用程序复制到网络上的其他计算机即可用那个.

如果要在这些应用程序实例之间进行通信,则需要编写一些套接字.

只需解释一下您制作了哪种类型的应用程序,以及它做了什么才能获得更准确的答案.
Just copy your application to other computers on the network so they can use that.

And if you want to communicate between these instances of application, you need to code some sockets.

Just explain what type of application you made and what does it do to get more accurate answer.


我猜想机器上运行的Windows应用程序无法共享!
如果您希望您的应用程序与另一台计算机上的其他应用程序进行通信.您的应用程序应具有客户端/服务器体系结构.
那就是创建一个套接字应用程序,在该应用程序中您的应用程序可以充当服务器.
创建一个连接并将其绑定,并侦听来自客户端的连接.
您的客户端应用程序将在核心探测端口号中连接到服务器应用程序.

它不是解决方案,我只是提出了建议!
如果有任何错误,请在任何地方纠正我!

谢谢,
Arun P.
i guess a windows application running in a machine cannot be shared!
if you want ur application to communicate with other application in another machine. your application should be of client/server architecture.
That is create a socket application where in ur application can act as a server.
create a connection and bind it and listen for the connections from the client.
Your client applications will conect to the server application in the coresonding port no.

its not the slution, i just gave a sugestion!
correct me anywhere if am wrong!

Thanks,
Arun P.


如果要开发一个数据库应用程序,则将数据库安装在一台计算机上,然后将应用程序安装在LAN中的另一台计算机上,并动态更改其数据库连接字符串
If you are developing one database application install your database in one single machine and your applications in another machines in LAN and change its database connection string dynamically


这篇关于如何使我的c ++ Windows应用程序在代码级别可用于局域网中的其他计算机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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