Thread: c++ on websites

  1. #1
    Registered User
    Join Date
    Nov 2009
    Posts
    151

    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
    Location
    Chappell Hill, Texas
    Posts
    2,332
    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).
    Mainframe assembler programmer by trade. C coder when I can.

  3. #3
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    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
    Location
    Toronto, ON
    Posts
    3,545
    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, 09:10 AM
  5. Any Good Websites For C???
    By linuxman132 in forum C Programming
    Replies: 5
    Last Post: 12-26-2001, 11:15 AM