直接在Web浏览器上运行基于窗口的EXE [英] Running window based EXE directly on web browser

查看:107
本文介绍了直接在Web浏览器上运行基于窗口的EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我是一名软件开发人员,并且已经制作了一个基于大窗口的软件,并且运行良好.但是现在我的客户需要基于Web的相同系统,但是在基于Web的重建中将花费很多时间.我可以存储我的软件基于窗口的exe到我的Web服务器.
现在有人告诉我,这是通过链接直接在浏览器中打开基于窗口的exe的任何方法.或者我可以将基于Windows的exe隐蔽到基于Web的系统的任何方法.....

Hello All,
I am a software developer and I have made a big window based sotware.And it is working perfectly.But now my client needs the same system in web based.But it will take very much time to rebuild in web based.I can store my window based exe to my web server.
Now anyone tell me that is any way to open that window based exe directly on the browser by a link.Or any way by which I can covert my window base exe to web based system.....

推荐答案

如果您正确地编写了基于Windows窗体的应用程序,则无需重写整个过程,只需重写UI部分即可.但是,有些事情告诉我您没有正确地对应用程序进行分层,所以...

无法自动将基于Windows窗体的应用程序转换为基于Web窗体(ASP.NET)的应用程序.也没有工具可以帮助您执行此操作.你必须手工做.

唯一的选择是虚拟桌面,但这需要大量与编程无关的其他工作,例如在虚拟环境中设置应用程序,对其进行测试以确保您的应用程序可以在其中运行,然后设置基础架构以部署此虚拟化映像并执行它.客户端计算机将需要向其部署软件才能运行此虚拟化映像

这些选项无法解决.没有单击此按钮,您就完成了"的解决方案.所有选项都会使您费力.
If you wrote your Windows Forms based application properly, you wouldn''t need to rewrite the entire thing, the just UI portions. But, something tells me you didn''t layer your application properly, so...

There is no way to automatically convert a Windows Forms based app to a Web Forms (ASP.NET) based app. There is no tool to help you do this either. You have to do it by hand.

The only other option is a virtualized desktop, but this requires a ton of other work not related to programming, such as setting up your application in a virtualized environment, testing it to death to make sure your app is going to work in it, then setting up the infrastructure to deploy this virtualized image and execute it. The client machines are going to need software deployed to them in order to run this virtualized image

There is no getting around these options. There is no "Click this button and you''re done" solution. All options are going to take a lot of work on your part.


如果要通过调用网页在服务器上执行命令,请使用System.Diagnostics.Process.Start:
If you want to execute a command on the server by calling a webpage then use System.Diagnostics.Process.Start:
string strCmdLine = "/parameter";
System.Diagnostics.Process.Start("CMD.exe",strCmdLine);


基于窗口的exe"?你一定是在开玩笑.毫无意义.忘掉它.更好的是,只需一点点.您知道服务器端和客户端做什么吗?关于它的事情,对您来说也应该很明显.

您只能从基于Windows的应用程序中获取源代码,并将其用于新项目,类库或Web应用程序代码本身.您应该删除旧版用户界面的所有迹象.如果您的代码与UI良好隔离,那么它会更加容易(如果不是这样)—这项工作将使用旧版源代码(仅供参考)从零开始进行开发.不用担心-重写非常有用.从第一次尝试开始,谁能完成所有工作? :-)

—SA
"Window based exe"? You must be joking. It makes no sense whatsoever. Just forget about it. Better yet, just thing about it a little. Do you know what server side and client side do? It you thing about it, it should be apparent to you, too.

You can only take the source code from your Windows based application and use it in new project, a class library or your Web application code itself. You should remove any signs of your legacy UI. If you code was well isolated from UI, it will be easier, if not — this work will be closer to development from scratch using legacy source code just for reference. Not to worry — rewriting is very useful. Who could to all the work right from the first attempt? :-)

—SA


这篇关于直接在Web浏览器上运行基于窗口的EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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