I am tryng to write CGI routines for the first time in VC++ .
There seems to be a problem with the write function. Is the following code correct ?
extern "C" _declspec(dllexport) void WriteCGI(CString stext)
// Get handle to std output device
hconsole = GetStdHandle(STD_OUTPUT_HANDLE);
// Write to standard device
The function produces the proper output when run locally on a MS-Dos console.
When running on the IIS, the function returns no response. The error is http 502 invalid gateway
Is it trying to write to a wrong port ?
Thanks and Regards