Thread: C++ + Web = ?

  1. #1
    Registered User
    Join Date
    Sep 2005
    Location
    USA
    Posts
    69

    Question C++ + Web = ?

    Can C++ be used on the web? Like, I know that you can use Applets with Java, and Scripts with a whole bunch of other stuff, but what about C++? Is there a C++ applet out there? Or maybe a C++ script? I'm confused.
    Adam

  2. #2
    Deprecated Dae's Avatar
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    1,034
    I think you can program a server to use .exe's or something. Not entirely sure but I think its based on CGI:
    http://www.coding-zone.co.uk/cpp/cgi/170401cgicpp.shtml
    http://hjs.geol.uib.no/cplusplus/
    Warning: Have doubt in anything I post.

    GCC 4.5, Boost 1.40, Code::Blocks 8.02, Ubuntu 9.10 010001000110000101100101

  3. #3
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    yes, you can create command prompt applications in c++ and use them as cgi through a webserver.

    no you cannot use the source as a script.
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Location
    USA
    Posts
    69
    How can I create a commant prompt application?
    Adam

  5. #5
    Registered User Jaqui's Avatar
    Join Date
    Feb 2005
    Posts
    416
    as Dae posted,

    This will be a good place to check out for coding a cgi with c / c++
    Quote Originally Posted by Jeff Henager
    If the average user can put a CD in and boot the system and follow the prompts, he can install and use Linux. If he can't do that simple task, he doesn't need to be around technology.

  6. #6
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    There are two sides to this. For starters, you can have yoru program run on the server. In which case you have something like an CGI script that computes something on the server then sends it to the client. Then you have a situation where the client downloads the code and runs it on their computer, such as an applet. You can do the first situation in any language, some provide better tools for this than others. The second is limited to what the client can execute. Java is probably the only thing in wide development. You can also use Jython if you like Python, it runs in the JVM. But most C++ applications require a rather complex build environment and installation process to install, which makes it generally difficult to use in an applet-like style.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. MS Web Services Question
    By mercury529 in forum Windows Programming
    Replies: 0
    Last Post: 11-14-2006, 06:36 PM
  2. Consuming same Web Service multiple times
    By cfriend in forum C# Programming
    Replies: 2
    Last Post: 01-10-2006, 09:59 AM
  3. SWEBS Web Server
    By nickname_changed in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 09-22-2003, 02:46 AM
  4. Further developing C for the web
    By bjdea1 in forum C Programming
    Replies: 24
    Last Post: 12-25-2002, 01:49 PM