Hi,
I have a project with about 30 files mostly .c files written in C and live on Apache webserver /Unix, which are nothing but CGI programs responding to Web Browser requests.
I can probly convert these files to C++ with no problem. But, Is there a way to combine these files into a project like one .sln project on Windows, and yet have the individual files still called when its requested by browser? The reason this is confusing me, I am used to OO where I have classes. header files all related...but CGI programs are not like that...Any hints how do I go about this?
A .sln is a solution file for Visual Studio; There's no such thing* in Unix land. CGI is a very simple system for controlling the browser. CGI programs accept input from stdin and environment variables, and output their response on stdout (printf and cout write to stdout). If you recompile the programs with g++ instead of gcc, you're technically using C++. If you want them be take advantage of the features C++ provides over C, you will effectively need to rewrite all of them.
CGI may not be the best place to start if you're not familiar with working on a unix or linux system.
*I have heard of people developing with Eclipse on Linux for C++, but you would be far better off to learn about makefiles and work from the terminal, especially for the sake of debugging if you really want to get into CGI.