i have added the following in the httpd.conf file apache
ScriptAlias /cgi-bin/ "e:/Program Files/cgi-bin/"
# "e:/Program Files/Apache Group/Apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
<Directory "e:/Program Files/Apache Group/Apache/cgi-bin">
Allow from all
The following error gets displayed when i tried to run the program in the browser.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@magnasoft and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.22 Server at harikris.lk Port 80
The following is the error displayed in the server's log file
[Fri Mar 01 15:40:44 2002] [error] [client 127.0.0.1] malformed header from script. Bad header=<html><title> Sample CGI C++ S: e:/program files/cgi-bin/test.exe
could u please let me know how to proceed further?