Maverick
Maverick

Reputation: 111

Host a c++ desktop application on a webpage

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

Upvotes: 10

Views: 1561

Answers (5)

totowtwo
totowtwo

Reputation: 2147

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

Upvotes: 0

rve
rve

Reputation: 6055

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

Upvotes: 0

teki
teki

Reputation: 2062

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

Upvotes: 0

ConcernedOfTunbridgeWells
ConcernedOfTunbridgeWells

Reputation: 66622

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.

Upvotes: 0

Šimon Tóth
Šimon Tóth

Reputation: 36433

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

Upvotes: 1

Related Questions