Windows NT, MFC, and FastCGI

Benjamin Gavin (gavinb@supranet.net)
Wed, 03 Sep 1997 08:12:02 -0500

Message-Id: <3.0.3.32.19970903081202.0094c210@mail.supranet.net>
Date: Wed, 03 Sep 1997 08:12:02 -0500
To: fastcgi-developers@OpenMarket.com
From: Benjamin Gavin <gavinb@supranet.net>
Subject: Windows NT, MFC, and FastCGI

-----BEGIN PGP SIGNED MESSAGE-----

Hi,
  I have been working on this project, one piece of which uses 
FastCGI, and one piece of which uses MFC.  I built the kit ran the 
echo programs no problem, or at least with a little help.  The 
environment variables changed from call to call, the process number 
stayed the same, all that good stuff.  However, when I cut and pasted 
the code into a FastCGI app using MFC, it bombed miserably.  The 
environment variables are no longer updating, and for CGI, that 
basically makes the whole program worthless.  Here is what I did:

1)  Downloaded files from www.fastcgi.com
2)  Ran build_no_shell.bat
3)  Ran the echo_nt.fcgi test program, all is working fine.
4)  Cut the code from the echo example, and pasted it into an 
existing
    MFC CGI program.
5)  This did not work.  The environment variables don't get updated.

  I don't have time to debug the FastCGI portion of this program, and 
I am at a loss as to what to do.  Is there something in MFC that is 
causing these program to bomb??  Is it because using MFC forces you 
to run Multithreaded??  I feel the the latter may be a problem.  I am 
going to look into it a little further, but like I said, I don't have 
that much time.  I assume, from what I have read, that the 
libfcgi.dll file is compiled single threaded, and the cgi-fcgi.exe is 
as well.
  Anyone have any other ideas??  Oh, I am using Microsoft VC5, under 
Windows NT 4.0, with MFC being used in a shared dll.

Thanks,
Ben
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQCVAwUBNA1iIUtkpl99enKxAQGqRAP8CYDh9KwROY+QFfeNzipqH1400S5z6w2c
MiUgld4vMvKfaP/gNT+LPWnceem5ZZ0pmmTIV3y4zzoxPgFFZ0x9Mdu6rxTDUE7g
CXZX8odPT8zBIrQWrWDl6WVIlvczlG0KkuJmIOg6X1BxjH+Al19lCRZgXbzv5QiF
OMiFtjdx8XE=
=9keG
-----END PGP SIGNATURE-----