Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

bdc256

C++ and The Web

This topic is 5723 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can Some one please give me a simple example of how to link a C++ program to the web. As a CGI program, or any other way you know how. I would like it to retive a small amount of data, but a counter program would be good to.

Share this post


Link to post
Share on other sites
Advertisement
you need a web host that allows you to run CGI-BIN scripts/programs. until you have that you can''t do anything.

you should also look into PHP or Jsp/Java. those also require special permissions / setups on the webserver, but are a better way to go about introducing computer code-type logic into webpages

-me

Share this post


Link to post
Share on other sites
Probably, u should read little about dynamic/cgi programming. Try PHP first, to get sense of web programming. Then migrate to C/C++. There are several libraries that could help u in data manipulation:

http://www.eekim.com/software/cgihtml/cgihtml.html
http://libcgi.sourceforge.net/

Lekha

Share this post


Link to post
Share on other sites
cgi programs are fairly simple

If memory serves, they''re basically the equivalent of console programs (although I don''t remember if querystring/form data is passed on stdin or argv[])

But to write the HTML output, just cout or printf() it.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!