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.
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
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
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.
Originally Posted by Jeff Henager
How can I create a commant prompt application?
Adam
as Dae posted,
This will be a good place to check out for coding a cgi with c / c++
Originally Posted by Jeff Henager
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.