X-Mozilla-Status: 0001 Message-ID: <34F5FDF1.F9B0A307@nospam.execpc.com> Date: Thu, 26 Feb 1998 17:42:41 -0600 From: Eric Durant X-Mailer: Mozilla 4.04 [en] (WinNT; U) MIME-Version: 1.0 Newsgroups: comp.infosystems.www.authoring.cgi Subject: Re: PWS and Visual C++ Ver. 1.0 References: <01bd42a0$4dc1f7c0$add606c4@coert.meditech.co.za> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Coert van der Merwe wrote: > I am serving my pages from the Windows 95 Personal Web Server. I have a C > program writing to the standard output, but it only executes and an error > displays in the web browser, telling that the application did not return > sufficient http headers. [...code elided...] > I compiled it as a Quickwin, and Windows executable file, but neither > worked. > > Must the CGI program also be 32-bit? Must I compile it as a Dos program? > What must I do to get it working? I don't think there is a 32-bit requirement, but the CGI standard defines its inputs and outputs in terms of console I/O. Your code works fine when it is compiled as a Win32 console application in MSVC++ 5.0, at least under IIS 2.0.