Migrate C++ application to web-based application
-
Hi Is there a way to migrate a C++ application to web-based application? All GUI and user interfaces should use web and others use C++ code. Like a web-based vector editor. Thanks,
If you mean "with an automatic tool" I'm diffident: A standalone application and a web-based application have a completely different rendering and communication logic. If you mean "is it possible to make in a browser an applet that renders a remote desktop executing an application", well ... I doubt about performances, and that's not a web app., it's just masked as it! You can -in some particular cases- for "form based apps" migrate them into "web based" since form-based have a communication mimic that's similar to the web one. But that's a very particular case.
2 bugs found. > recompile ... 65534 bugs found. :doh:
-
Hi Is there a way to migrate a C++ application to web-based application? All GUI and user interfaces should use web and others use C++ code. Like a web-based vector editor. Thanks,
the standard process is this: 1. form a committee to investigate the migration: is it possible, is it worth the trouble? 2. assign two developers to come up with a prototype. when they deliver an ugly app that does nothing... 3. hire a consultant to tell you that it will cost $X,000,000 and will take 2 years. 4. fire all your developers. 5. hire an outsourcing company who claims they can do it in six months. 6. pout, when they deliver something ugly and broken.
-
Hi Is there a way to migrate a C++ application to web-based application? All GUI and user interfaces should use web and others use C++ code. Like a web-based vector editor. Thanks,
You might want to have a look at "wt" (pronounced 'witty') http://www.webtoolkit.eu/wt] You still have to rebuild your UI with the wt classes, but its C++ style.
-
You might want to have a look at "wt" (pronounced 'witty') http://www.webtoolkit.eu/wt] You still have to rebuild your UI with the wt classes, but its C++ style.
-
Hi Is there a way to migrate a C++ application to web-based application? All GUI and user interfaces should use web and others use C++ code. Like a web-based vector editor. Thanks,
yes
-
Thank you for your reply. I have a question for you. Does "WT" compile the code into "exe"? Thanks
modified on Friday, February 12, 2010 6:02 PM
AFAIK it is possible to build an executable for UNIX or Windows with build-in http server or you can build a mod for apache (uses FastCGI). Please see http://www.webtoolkit.eu/wt#/features[^]
-
Thank you for your reply. I have a question for you. Does "WT" compile the code into "exe"? Thanks
modified on Friday, February 12, 2010 6:02 PM
-
Wt is a C++ library, so you link it in your executable as a DLL. It consists of a convenient set of building blocks (text, buttons, trees, charts, graphics, ...) that you can combine to create a web UI in an object oriented way. You use the building blocks to build a tree which represents your interface (e.g. a Dialog containing a text and two buttons). It works much like traditional C++ GUI toolkits, such as Qt. But instead of rendering on a desktop screen, Wt uses the browser to render. Event handling is transparent: if a user clicks a button in the browser, a function is automatically invoked at the server. The programmer specifies which functions need to be invoked by means of a signal/slot mechanism. From those functions, you can easily interact with your existing application. If you run a Wt application, it will behave like a web server and listen on a TCP port. When a user surfs to a Wt application, Wt investigates the browser capabilities and renders your widget tree in the most optimal way to your browser (JavaScript, AJAX, browser-specific dialects, ...). But why don't you take a look at Wt's hello world example? http://www.webtoolkit.eu/wt/examples/ Or an interactive demonstration of the available widgets: http://www.webtoolkit.eu/widgets/basics/wpanel