Echo.c observation (and corresponding dumb question)

Ken Gustafson <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi all - thanks in advance for any comments on this:
Running windows XP; apache 1.3.33; mod_fastcgi 2.4.1; MS VC++ 6
I've successfully compiled and ran echo.c (as a 'C' app) from the
supplied MS VC++ project files...apache output is perfect.
I then created a new C++ project (myecho.cpp), copied/pasted echo.c
into myecho.cpp, and compiled (as a 'C++' app) fine.
On execution though, the (static) application does not echo the proper
request environment; it's always a mirror of the initial environment
(output below):

FastCGI echo

Request number 4, Process ID: 3476

No data from standard input.

Request environment:
SystemRoot=C:\WINDOWS
_FCGI_SHUTDOWN_EVENT_=1892
_FCGI_MUTEX_=1944

Initial environment:
SystemRoot=C:\WINDOWS
_FCGI_SHUTDOWN_EVENT_=1892
_FCGI_MUTEX_=1944

<dumb_question>
It appears as though the server passed request environment is not accessible.
Is there some #ifdef __cplusplus directive the compiler sees and
changes what environ points to?  Could it be MS VC++?
</dumb_question>
Bewildered newbie...
Ken
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.