Date: Tue, 30 Jul 1996 21:16:57 +1000 From: Peter Louvel
Subject: IIS
To: djgpp AT delorie DOT com
Message-id: <31FDEF29.180F@qut.edu.au>
Organization: QUT
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
Hello
I am trying to write a CGI for the IIS server on NT in C.
IIS needs to have a 32bit CGI to run properly
I have written hello world with Visual C++ 4
I compiled the same code with GCC (djgpp dos version)
ran it in dos and the output shows correctly
Context-type text/html
hello world
but when I run it on the server from netscape
/cgi-bin/testb.exe
I get
HTTP/1.0 500 Server Error (The handle is invalid.)
which tells me the code is not 32bit (thats what the iis doc's say)
I thought GCC was a 32bit compiler.. if so why isn't it comiling 32bit.
the c code is
#include