c++ on websites

This is a discussion on c++ on websites within the C++ Programming forums, part of the General Programming Boards category; is there a way to put c++ applications on the web, like what you do in Java with applets?...

  1. #1
    Registered User
    Join Date
    Nov 2009

    c++ on websites

    is there a way to put c++ applications on the web, like what you do in Java with applets?

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Katy, Texas
    You can use a C++ program to process html page requests and serve up pages. In this regard, the program would be called a "CGI" program.

    As far as running a C++ program inside a web page off the server, I have not done that. (Although I have done several Java applets).
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    Registered User
    Join Date
    Oct 2006
    As stated, CGI is what you would use. CGI is actually pretty easy, and your program would be almost identical to writing a C or C++ command-line program. Note that the C/C++ programs are executed on the web server, prior to being sent to the client browser. They are not executed on a "website" or anything like that. The only things that can be executed on the client side/browser, are, just that: client-side technologies, such as HTML, JavaScript, etc.

  4. #4
    and the hat of sweating
    Join Date
    Aug 2007
    Toronto, ON
    No. C++ is compiled to machine code and is therefore very platform dependent. Java is platform independent, which is why you can put a Java Applet on your web page and have it work on everyone else's browser. C++ code compiled on Windows won't work on Linux, Mac or anywhere else...
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. I am looking for C++ websites for beginners
    By PasswordMaker99 in forum C++ Programming
    Replies: 2
    Last Post: 04-24-2005, 08:33 PM
  2. Your Websites
    By St0rmTroop3er in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 10-05-2003, 12:22 PM
  3. favorite technology websites
    By volk in forum Tech Board
    Replies: 10
    Last Post: 05-07-2003, 10:36 PM
  4. Websites
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 12-27-2001, 08:10 AM
  5. Any Good Websites For C???
    By linuxman132 in forum C Programming
    Replies: 5
    Last Post: 12-26-2001, 10:15 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21