Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Migrate C++ application to web-based application

Migrate C++ application to web-based application

Scheduled Pinned Locked Moved C / C++ / MFC
c++graphicsquestion
10 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    transoft
    wrote on last edited by
    #1

    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,

    E K C A 4 Replies Last reply
    0
    • T transoft

      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,

      E Offline
      E Offline
      Emilio Garavaglia
      wrote on last edited by
      #2

      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:

      1 Reply Last reply
      0
      • T transoft

        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,

        K Offline
        K Offline
        Knut Beese
        wrote on last edited by
        #3

        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.

        T 1 Reply Last reply
        0
        • T transoft

          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,

          C Offline
          C Offline
          Chris Losinger
          wrote on last edited by
          #4

          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.

          image processing toolkits | batch image processing

          1 Reply Last reply
          0
          • K Knut Beese

            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.

            T Offline
            T Offline
            transoft
            wrote on last edited by
            #5

            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

            K W 2 Replies Last reply
            0
            • T transoft

              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,

              A Offline
              A Offline
              Alexey Malyshev
              wrote on last edited by
              #6

              yes

              1 Reply Last reply
              0
              • T transoft

                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

                K Offline
                K Offline
                Knut Beese
                wrote on last edited by
                #7

                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[^]

                1 Reply Last reply
                0
                • T transoft

                  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

                  W Offline
                  W Offline
                  woiccppw
                  wrote on last edited by
                  #8

                  Yes

                  T 1 Reply Last reply
                  0
                  • W woiccppw

                    Yes

                    T Offline
                    T Offline
                    transoft
                    wrote on last edited by
                    #9

                    Could you introduce a little of the way? Thanks

                    W 1 Reply Last reply
                    0
                    • T transoft

                      Could you introduce a little of the way? Thanks

                      W Offline
                      W Offline
                      woiccppw
                      wrote on last edited by
                      #10

                      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

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups