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. The Lounge
  3. C++ Web Apps

C++ Web Apps

Scheduled Pinned Locked Moved The Lounge
c++question
28 Posts 18 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.
  • B basementman

    That is my question too. With the right framework and app server, you can be as productive, or even more productive than using JSP, ASP, ASPNET, etc. And at the end of the day, you can end up with an application that can run twice as fast on half the hardware. As well as utilizing all the code libaries that have been developed over the last 15 years.  onwards and upwards...

    J Offline
    J Offline
    Judah Gabriel Himango
    wrote on last edited by
    #11

    When people ask, "why not write Vista in .NET?" I repsond with "you need to use the right tool for the job". This is one of those cases: C++ is a systems programming language. It is not meant for web development. Yes, you could do it. You could also write Vista almost entirely in managed code (see the Singularity kernel for more information). While there are legitimate arguments for both (for example, you argue you can be as productive as typical web frameworks given the right C++ frameworks, and people argue that with built-in code sandboxing, safe memory management, etc. managed code provides for a more secure operating system). But in the end, you're simply not using the best tool for the job, at least as the tools currently sit, simply because they weren't designed for that.

    Tech, life, family, faith: Give me a visit. I'm currently blogging about: Is Jesus the Jewish Messiah? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango

    1 Reply Last reply
    0
    • P Paul Watson

      What would you consider to be the right framework and app server? I think it is pretty difficult to argue CGI and co. is more productive than Ruby on Rails, PHP, ASP.NET and co for web-apps. regards, Paul Watson Ireland Feed Henry!

      Shog9 wrote:

      eh, stop bugging me about it, give it a couple of days, see what happens.

      B Offline
      B Offline
      basementman
      wrote on last edited by
      #12

      CGI is certainly NOT more productive, nor does it perform as well. If you are interested, I can post docs on the app server. It has a declarative forms engine, code generator, client-side UI libraries, etc. I was just trying to gauge if people have totally abandoned using C++ for web development, whether it be as CGI, ISAPI or Apache modules.  onwards and upwards...

      1 Reply Last reply
      0
      • B basementman

        That is my question too. With the right framework and app server, you can be as productive, or even more productive than using JSP, ASP, ASPNET, etc. And at the end of the day, you can end up with an application that can run twice as fast on half the hardware. As well as utilizing all the code libaries that have been developed over the last 15 years.  onwards and upwards...

        J Offline
        J Offline
        Jon Sagara
        wrote on last edited by
        #13

        basementman wrote:

        And at the end of the day, you can end up with an application that can run twice as fast on half the hardware. As well as utilizing all the code libaries that have been developed over the last 15 years.

        Yes, but no-one else has access to those libraries, and no-one has 15 years to build their own. In your case, it sounds like C++ web dev works well, but I'm guessing that for most developers it's far more efficient to jump in and use existing frameworks (.NET/Java/PHP/ROR/etc.) to build Web apps. Jon Sagara When I grow up, I'm changing my name to Joe Kickass! My Site | My Blog | My Articles

        1 Reply Last reply
        0
        • D Dominik Reichl

          Why?


          _outp(0x64, 0xAD); and __asm mov al, 0xAD __asm out 0x64, al do the same... but what do they do?? ;) (doesn't work on NT)

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

          when i did it in C++ (DCOM, specifically) we had to build our pages as strings in C++, then pass them back to the web server for delivery to the user. the C++ was always over here in this file, then over here in this DLL, and the web server was over there. but with something like PHP or ASP (or the .Net stuff), your code is closer to the actual HTML page. at least for me, being able to put code right inside the HTML (or in an HTML template) feels a lot more natural. Cleek | Image Toolkits | Thumbnail maker

          1 Reply Last reply
          0
          • B basementman

            Just curious, how many out there are using unmanaged C++ to develop web apps?  onwards and upwards...

            M Offline
            M Offline
            Matt Gullett
            wrote on last edited by
            #15

            I developed and maintain a survey system that uses a C++ based Windows service to generate all of the web pages and do all of the other work as well. There is an ISAPI interface to IIS as well as a light-weight ASP based "driver". The performance is much better than ASP or ASP.NET, but maintenance and code updates are more difficult as is having multiple "instances" of the web app running. It's a good fit for this particular situation, but I wouldn't recommend it for too many other situations. I don't forsee a need to port it to .NET (or any other platform) anytime in the forseeable future. Other than that, I have a reporting engine that is C++ based (service, console, GUI and web UI) that generates allot of HTML, but it does almost all of this through templates and an ASP-like scripting engine. For these 2 situations, I think C++ has been a good fit, but for all the other web apps I develop/maintain, it's either ASP or .NET. I still use some classic ASP for quick-n-dirty tasks.

            L 1 Reply Last reply
            0
            • B basementman

              That is my question too. With the right framework and app server, you can be as productive, or even more productive than using JSP, ASP, ASPNET, etc. And at the end of the day, you can end up with an application that can run twice as fast on half the hardware. As well as utilizing all the code libaries that have been developed over the last 15 years.  onwards and upwards...

              C Offline
              C Offline
              code frog 0
              wrote on last edited by
              #16

              basementman wrote:

              And at the end of the day, you can end up with an application that can run twice as fast on half the hardware. As well as utilizing all the code libaries that have been developed over the last 15 years.

              Boy! I wish I felt as comfortable as you when I read the description on the back of packages before putting them back on the shelf. Sounds like a lot of marketing merged into two sentences. ;P


              The enemy's gate is down.:cool:
              Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

              People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

              B 1 Reply Last reply
              0
              • C code frog 0

                basementman wrote:

                And at the end of the day, you can end up with an application that can run twice as fast on half the hardware. As well as utilizing all the code libaries that have been developed over the last 15 years.

                Boy! I wish I felt as comfortable as you when I read the description on the back of packages before putting them back on the shelf. Sounds like a lot of marketing merged into two sentences. ;P


                The enemy's gate is down.:cool:
                Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

                People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

                B Offline
                B Offline
                basementman
                wrote on last edited by
                #17

                code-frog wrote:

                And at the end of the day, you can end up with an application that can run twice as fast on half the hardware. As well as utilizing all the code libaries that have been developed over the last 15 years.

                I actually wrote that off the cuff based on experience, but maybe I should pursue a career in marketing:cool:  onwards and upwards...

                C 1 Reply Last reply
                0
                • B basementman

                  code-frog wrote:

                  And at the end of the day, you can end up with an application that can run twice as fast on half the hardware. As well as utilizing all the code libaries that have been developed over the last 15 years.

                  I actually wrote that off the cuff based on experience, but maybe I should pursue a career in marketing:cool:  onwards and upwards...

                  C Offline
                  C Offline
                  code frog 0
                  wrote on last edited by
                  #18

                  Well I was poking some fun 1/2 the hardware twice the speed... 4 full orders of magnitude. Sounded kind of funny. But hey, my dad is bigger than your dad so no big deal.:laugh:


                  The enemy's gate is down.:cool:
                  Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

                  People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

                  B 1 Reply Last reply
                  0
                  • C code frog 0

                    Well I was poking some fun 1/2 the hardware twice the speed... 4 full orders of magnitude. Sounded kind of funny. But hey, my dad is bigger than your dad so no big deal.:laugh:


                    The enemy's gate is down.:cool:
                    Welcome to CP in your language. Post the unicode version in My CP Blog [ ^ ] now.

                    People who don't understand how awesome Firefox is have never used CPhog. The act of using CPhog alone doesn't make Firefox cool. It opens your eyes to the possibilities and then you start looking for other things like CPhog and your eyes are suddenly open to all sorts of useful things all through Firefox. - (Self Quote)

                    B Offline
                    B Offline
                    basementman
                    wrote on last edited by
                    #19

                    ;)  onwards and upwards...

                    1 Reply Last reply
                    0
                    • M Matt Gullett

                      I developed and maintain a survey system that uses a C++ based Windows service to generate all of the web pages and do all of the other work as well. There is an ISAPI interface to IIS as well as a light-weight ASP based "driver". The performance is much better than ASP or ASP.NET, but maintenance and code updates are more difficult as is having multiple "instances" of the web app running. It's a good fit for this particular situation, but I wouldn't recommend it for too many other situations. I don't forsee a need to port it to .NET (or any other platform) anytime in the forseeable future. Other than that, I have a reporting engine that is C++ based (service, console, GUI and web UI) that generates allot of HTML, but it does almost all of this through templates and an ASP-like scripting engine. For these 2 situations, I think C++ has been a good fit, but for all the other web apps I develop/maintain, it's either ASP or .NET. I still use some classic ASP for quick-n-dirty tasks.

                      L Offline
                      L Offline
                      Larsenal
                      wrote on last edited by
                      #20

                      Can you describe more details of your app? I am in the middle of reviewing the architecture of one of our critical systems. The challenge I have is that the app is serviced from some number-crunching FORTRAN code. Here is the life of a web request as it exists now: 1) Client makes request from Flash web client 2) Command transmitted over HTTP to ASPX page 3) ASPX page queries the computational engine somewhere in the app cluster over TCP/IP 4) (Application is written in C#) 5) App makes calls to methods in a compiled FORTRAN dll 6) results are written to a file (I know we need to fix this... If anyone knows how to return large amounts of text from FORTRAN to it's C# wrapper, lets talk!) 7) C# app reads file as results 8) C# app sends back to ASPX page over TCP/IP 9) response is formatted and sent as XML to Flash web client

                      B 1 Reply Last reply
                      0
                      • B basementman

                        Just curious, how many out there are using unmanaged C++ to develop web apps?  onwards and upwards...

                        A Offline
                        A Offline
                        alex barylski
                        wrote on last edited by
                        #21

                        I'll stick with PHP on that one ;) C++/MFC for Windows applications PHP for web applications It's frustrating being a genius and living the life of a moron!!!

                        1 Reply Last reply
                        0
                        • B basementman

                          Just curious, how many out there are using unmanaged C++ to develop web apps?  onwards and upwards...

                          J Offline
                          J Offline
                          James Pullicino
                          wrote on last edited by
                          #22

                          A number of bbc websites are written in c++. A new one we just launched is at www.bbc.co.uk/comedysoup //

                          1 Reply Last reply
                          0
                          • B basementman

                            Just curious, how many out there are using unmanaged C++ to develop web apps?  onwards and upwards...

                            G Offline
                            G Offline
                            Gerald Schwab
                            wrote on last edited by
                            #23

                            I do.

                            1 Reply Last reply
                            0
                            • B basementman

                              Just curious, how many out there are using unmanaged C++ to develop web apps?  onwards and upwards...

                              L Offline
                              L Offline
                              Lost User
                              wrote on last edited by
                              #24

                              I recently developed a web server in C++ (using STL), with the front end in AJAX/XHTML/CSS. Works a treat, and was an interesting project.

                              1 Reply Last reply
                              0
                              • B basementman

                                Just curious, how many out there are using unmanaged C++ to develop web apps?  onwards and upwards...

                                R Offline
                                R Offline
                                Rocky Moore
                                wrote on last edited by
                                #25

                                To me it would be more of "like why?". There are too many good technologies available to lock your self down to something so low level and time consuming. I could write every application in C/C++, but I do not want to wait years for deployment and then have to deal with all the bugs that surface. The new technologies are proven to increase productivity, reliability, saftey and deployability. The more you can deploy they more you can build.. Rocky <>< Latest Post: SQL2005 Server Managemnet Studio timeouts! Blog: www.RockyMoore.com/TheCoder/[^]

                                M 1 Reply Last reply
                                0
                                • R Rocky Moore

                                  To me it would be more of "like why?". There are too many good technologies available to lock your self down to something so low level and time consuming. I could write every application in C/C++, but I do not want to wait years for deployment and then have to deal with all the bugs that surface. The new technologies are proven to increase productivity, reliability, saftey and deployability. The more you can deploy they more you can build.. Rocky <>< Latest Post: SQL2005 Server Managemnet Studio timeouts! Blog: www.RockyMoore.com/TheCoder/[^]

                                  M Offline
                                  M Offline
                                  MS_Borland_Coder
                                  wrote on last edited by
                                  #26

                                  Probably because most people are ignorant of wayt to actually do it, like you and many other posters. Try IntraWeb wiht Borland C++Builder or Delphi (or Kylix, for that). http://www.atozed.com Nate. Nathaniel L. Walker "I lack emotions. Don't test me..."

                                  1 Reply Last reply
                                  0
                                  • L Larsenal

                                    Can you describe more details of your app? I am in the middle of reviewing the architecture of one of our critical systems. The challenge I have is that the app is serviced from some number-crunching FORTRAN code. Here is the life of a web request as it exists now: 1) Client makes request from Flash web client 2) Command transmitted over HTTP to ASPX page 3) ASPX page queries the computational engine somewhere in the app cluster over TCP/IP 4) (Application is written in C#) 5) App makes calls to methods in a compiled FORTRAN dll 6) results are written to a file (I know we need to fix this... If anyone knows how to return large amounts of text from FORTRAN to it's C# wrapper, lets talk!) 7) C# app reads file as results 8) C# app sends back to ASPX page over TCP/IP 9) response is formatted and sent as XML to Flash web client

                                    B Offline
                                    B Offline
                                    basementman
                                    wrote on last edited by
                                    #27

                                    Using our C++ app server, we would simply receive the HTTP request, call the fortran code directly and format the response right into the HTTP response. That is the flexibility of using an engine that actually lets you write native code that can call native libraries/dlls without the hassle of middleware wrappers and products.  onwards and upwards...

                                    L 1 Reply Last reply
                                    0
                                    • B basementman

                                      Using our C++ app server, we would simply receive the HTTP request, call the fortran code directly and format the response right into the HTTP response. That is the flexibility of using an engine that actually lets you write native code that can call native libraries/dlls without the hassle of middleware wrappers and products.  onwards and upwards...

                                      L Offline
                                      L Offline
                                      Larsenal
                                      wrote on last edited by
                                      #28

                                      The problem I'm having is transferring large amounts of text back to the calling C# function. FORTRAN seems to prefer fixed-length mechanisms. Sometimes the response will be 10 characters... sometimes it will be 10,000 characters. :~

                                      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