开发者

Host a c++ desktop application on a webpage

开发者 https://www.devze.com 2023-03-14 11:30 出处:网络
I am having a desktop application which having 开发者_如何学编程a UI interface made in Qt linked with a library which is doing all the calculation stuff. Values from UI is taken and pass to the API\'s

I am having a desktop application which having 开发者_如何学编程a UI interface made in Qt linked with a library which is doing all the calculation stuff. Values from UI is taken and pass to the API's in the DLL to get the output which is shown on Screen.

Now i want to do the same thing by transferring my application UI to a web page so that people can access the tool from anywhere without any installation process.

I want to retain my c++ DLL code so i don't have to do a lot of work. I am thinking of just converting this DLL to a C++ server by any communication Process(Sockets). I want to host this application on my company's website. (We have to make the website also so we are open to any set of tools).

I want to know what will be the best set of tools to do this stuff. Also there will be lot of data exchange between the webpage and server so the wholething should be optimized also. I goggled a bit and find stuff like silverlight and ASP.NET, But i am still not very clear which option will be more suitable.

I am a c++ programmer with no web application development experience. I am open to learn any new technology.

Thanks


Why not use Qt on the web directly? There are several projects like this one: http://qtwui.sourceforge.net/


There is a netscape plugin that will host a QT application and an ActiveX control wrapper on the QT website. You could use one of those to wrap your application. Note that this approach would require the user (or their administrator) to download and install the plugin.

An alternative approach might be to run your application through a remote desktop such as XVNC, NX or an RDP based layer. IIRC browser based remote desktop clients are available for most such protocols.


A few options:

  • pick a messaging/queue implementation (like http://www.zeromq.org/) and provide a service
  • implement a Windows Web Service if you want to be more enterprise friendly: http://msdn.microsoft.com/en-us/magazine/ee335693.aspx

I would not expose the implementation on the internet. Enough to have a simple buffer overflow and the machine can be taken over quickly. Adding a layer between the app and the web provides an easy way to validate input, access, stats ...


You should be able to use your DLL from an wt or cppcms application. Then you do not have to learn something new and can just use C++.


The way I'm currently doing this is with Boost.Python + django

0

精彩评论

暂无评论...
验证码 换一张
取 消