tags:

views:

343

answers:

5

Is C/C++ still used for web programming? What I mean by web programming is the typical CGI kind of applications which generates HTML on the fly.

My main question is geared towards finding a suitable framework/library for C/C++ based web programming.

What library/framework would you recommend for web programming with C/C++? I am not looking for .NET based libraries. I am looking for plain C/C++ libraries/framework which could be used to program across different operating systems like Windows, Unix, Linux, etc.

P.S: I understand the world is moving/moved towards C#, Java, PHP, Ruby, etc.

+4  A: 

Checkout Wt ('Witty').

http://www.webtoolkit.eu/wt

Rob
This looks interesting.
rajesh pillai
It's not that I am a fan of Wt, but can't think of any reason for the downvote here…
Michael Krelin - hacker
My reply was downvoted? Sheesh. What is wrong with people?
Rob
At the time of my last comment it had a score of 0 although I have upvoted. For what I know of math that signifies some downvoting going on here.
Michael Krelin - hacker
A: 

Go along with the world. If You are familliar with C it will be a piece of cake to start working with modern languages.

If You are really convinced to use C++ for webdeveloping: I have best result using Eclipse while programming in C++.

ymir
Thanks for your comment. I am pretty much familiar with .net and other realted latest buzz...Looking out for some cool c/c++ library for web development.
rajesh pillai
A: 

There is the web toolkit WT for C++ based webapps, but as you said, C++ is hardly used for frontend web development because it is just quite hard to handle for these tasks (thinking about all the string processing and encoding hassle alone).

Though it is not uncommon to use it for stuff that needs real C/C++ performance (or comes from legacy systems) and then process the results with an easier to handle (scripting) language for web based representation.

Daff
A: 

Also do not underestimate the power of using no frameworks at all. This is always an option to consider.

Just pick the libraries you need for each part of your project (database access, if any, generating images, if any, wiping out your whole system when needed, etc. — including communicating with web server). You have the freedom of choice.

Now I can relax and count downvotes.

Michael Krelin - hacker
But the question suggests at least some structure to address incoming HTTP requests - what do you suggest here?
Elemental
Elemental, this, basically, means one of the "CGI" interfaces (which is not necessarily CGI and may even be HTTP library). There are a few and the freedom of choice is there. As I have said, using library is a good thing. And you can chose from the variety thereof. Given the framework you're more or less... Well, stuck in the frame ;-)
Michael Krelin - hacker
A: 

We just did a new release of Fost 4 today. It is a web development framework, but the porting from Windows only isn't yet complete. Depending on what your needs are it may already be complete enough though.

http://www.kirit.com/Blog%3A/2009-09-21/Fost%204%20release%204.09.09.36898%20now%20out

KayEss