将Windows CE项目转换为Web [英] Convert Windows CE project to web

查看:79
本文介绍了将Windows CE项目转换为Web的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个Windows CE 5 winforms应用程序。但我想迁移到Web应用程序。我知道不可能自动将Windows窗体转换为html,javascript等。需要手动工作。


我所要求的是一种保存表单中现有代码的方法。有没有办法将控件从Web应用程序映射或连接到我的WinCE应用程序的现有代码?


例如,使用代码的Web-Api和使用它的Web应用程序之类的东西。我将使用ReactJS作为网络应用。



我的问题更多是关于我现有的代码。例如,当我按下Web UI上的按钮时,会从现有代码中触发button_Clicked事件。或者当我的Web表单加载时,将触发从数据库下载数据的事件,并将下载的数据转发到
我的Web应用程序UI。 web-api能胜任吗?


有什么建议吗?

解决方案

Web应用程序和WinCE应用程序完全不同。因此,除了可能是数据访问代码之外,您不能使用太多代码,但这也取决于您在WinCE中使用的数据库。重写网络应用程序的代码将是一个更好的选择。 


或者当我的网页表单加载时,会触发从数据库下载数据的事件,并将下载的数据转发到我的网络应用程序UI。
是否支持web-api?


您可以创建Web API以向WinCE应用程序发送请求,下载数据和转移到网络应用程序,但web api必须托管在你的WinCE设备上,我怀疑WinCE设备是否可以处理它。 





I have a Windows CE 5 winforms application. But I want to migrate to web application. I know it is not possible to automatically convert windows form to html, javascript etc. Manual work will be need.

What I am asking is a way to preserve the existing code from the forms. Is there a way to map or connect contols from web application to the existing code of my WinCE app?

For example, something like Web-Api using the code and a Web app comunicating with it. I will use ReactJS for the web app.

My question is more about my existing code. For example, when I press a button on the web UI, a button_Clicked event is fired from my existing code. Or when my web form is loading, an event for data download from DB is fired and downloaded data is trnsferdto my web app UI. Is web-api capable of this?

Any suggestions?

解决方案

Web application and WinCE app are completely different. So you can't use much code also except may be data access code, but that also depends on which database you were using in WinCE. Rewrite the code for web app would be a preferable option. 

Or when my web form is loading, an event for data download from DB is fired and downloaded data is trnsferdto my web app UI. Is web-api capable of this?

You can create Web API to send request to WinCE app, download data and transfer to web app, but web api has to be hosted on your WinCE device, and I doubt WinCE device can handle it or not. 



这篇关于将Windows CE项目转换为Web的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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