Layout ] Multimedia ] Programming ] Scripting ] Communicate ] Navigation ]

C++ CGI

Up ] [ C++ CGI ] Perl CGI ] Java Applets ] Server Side Includes ] Programming Links ]

C++ is a programming language commonly used for application development today.  It is extremely fast, and creates smaller code than many other languages.  Also, C++ is supported on nearly every operating system.  This makes it the perfect language for CGI programming.  CGI is the way that programs on the server communicate with a web browser.

First, you need a C++ compiler.  This will make the source code you write into something that can be used by a computer.  Here are some free C++ compilers that you can download.

  • DJGPP (Dos, Windows)
  • GCC (Unix, OS/2, others)

Generally, your server will have a C++ compiler already installed if you can use CGI there.  Usually it is GCC.  Generally, the best way to develop a CGI program is to write most of the code, test it on YOUR computer using a compiler for your OS.   Then you can upload it, compile it and test it on the server.  That way you can get rid of most of the bugs offline, which is more convenient in most cases.

In any case, if you haven't programmed in C++ before, I suggest that you look at From the Ground Up, a C++ tutorial, to introduce you to C++.  Once you have some idea of how to program in C++, you can visit a C++ CGI tutorial.  These focus specifically on how CGI programs in C++.   Two good C++ CGI tutorial are Programming CGI in C/C++ and C++ CGI.

To see examples of C++ CGI programs, see the CGI Resource Index.

For further information, please see our links page.

Layout ] Multimedia ] Programming ] Scripting ] Communicate ] Navigation ]
[ C++ CGI ] Perl CGI ] Java Applets ] Server Side Includes ] Programming Links ]

The Web Wizard's Spellbook © 1998, Team WWS