Host a c++ desktop application on a webpage
Asked Answered
T

5

10

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

Torgerson answered 22/6, 2011 at 11:28 Comment(2)
consider hosting the application on cloud servers and scaling out on demand. This should be rather cheap; You can combine it with Citrix/Terminal server like access (FreeNX or VNC with XDM on unix). I'm confident that Azureus will have good offeringsBradford
Silverlight 5 could potentially help, but I don't know if they allow P/Invoke on libraries packaged in the XAP. Otherwise Silverlight is not the technology you are looking for.Snowdrop
E
1

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

Educated answered 22/6, 2011 at 11:31 Comment(5)
That looks quite immature. Google gears or Pyjamas would seem much more up to the job; That is, if Flex/Silverlight are for some reason not applicableBradford
@Bradford It's just one of several, I don't have them bookmarked, but I saw several that looked very usable. Plus rewriting an application in a new framework will usually cause more problems that an immature framework.Cardio
that's even forgetting that none of this was the OP's question :)Bradford
qtwui looks fine but is having very less features ( only a few widgets, support for external webservers like apache and IIS). I don't have problem with recreating the UI( html pages) in any tool. My main concern is to reuse my library as it is having a lot of code and rewriting it in any othe language might take a lot of time and effort.Torgerson
@Torgerson Well, in such case, just go for fastcgi.Cardio
T
0

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.

Three answered 22/6, 2011 at 11:37 Comment(0)
D
0

A few options:

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 ...

Doubtful answered 23/6, 2011 at 12:22 Comment(0)
L
0

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++.

Languet answered 23/6, 2011 at 13:17 Comment(1)
I also checked wt yesterday and find it pretty good. I am going to try this first.Torgerson
M
0

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

Metaphrase answered 23/6, 2011 at 18:16 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.