my guess is the computer that runs the cgi program does not have .NET framefork installed or the wrong version. Use either fprintf() or cout and you won't have that problem.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Here http://www.cs.tut.fi/~jkorpela/forms/cgic.html is one of probably many tutorials. stdout is treated in a special way in a web server, which redirects it back to the web browser. I don't know enough of the details to tell you much more -- just google for "cgi c programs" and you will get more information.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343